id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
C++_Ranges_library/C++_Ranges_library_66_0.txt | ##### [ cppreference.com ](/)
[ Log in
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Fcommon+range
"You are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/cpp/ranges/common_range "View the content page \[c\]")
* [ Discussion ](/mwiki/index.php?titl... | |
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_85_0.txt | Improve this answer
Follow | |
C++_Ranges_library/param-pack.html4_65_0.txt | ## Recursive types through inheritance
Sometimes you want to define a type that holds a variable number of arguments
depending on a parameter pack. ` std::tuple ` is a good example of such a
type. A good way to do this is through inheritance, using the derived class to
hold one element, and the base class to hold th... | |
C++_Ranges_library/C++_Ranges_library_126_2.txt | ct initialization ](/w/cpp/language/direct_initialization "cpp/language/direct initialization") | 201902L | (C++20) | [ P0960R3 ](https://wg21.link/P0960R3)
` __cpp_alias_templates ` | [ Alias templates ](/w/cpp/language/type_alias "cpp/language/type alias") | 200704L | (C++11) | [ N2258 ](https://wg21.lin... | |
C++_Ranges_library/C++_Ranges_library_88_3.txt | s::iota ` ](/w/cpp/ranges/iota_view "cpp/ranges/iota view")
The ranges library includes [ range algorithms ](/w/cpp/algorithm/ranges
"cpp/algorithm/ranges") , which are applied to ranges eagerly, and [ range
adaptors ](/w/cpp/ranges#Range_adaptors "cpp/ranges") , which are applied to
views lazily. Adaptors can be comp... | |
C++_Ranges_library/C++_Ranges_library_64_24.txt | 21.link/P1227R2)
` __cpp_lib_sstream_ from_string_view ` | Interfacing [ std::stringstream ](/w/cpp/io/basic_stringstream "cpp/io/basic stringstream") s with [ std::string_view ](/w/cpp/string/basic_string_view "cpp/string/basic string view") | 202306L | [ ` <sstream> ` ](/w/cpp/header/sstream "cpp/header/sstr... | |
C++_Ranges_library/C++_Ranges_library_29_26.txt | ](/w/cpp/header/tuple "cpp/header/tuple") [ ` <utility> ` ](/w/cpp/header/utility "cpp/header/utility") | (C++14) | [ N3670 ](https://wg21.link/N3670)
` __cpp_lib_type_identity ` | std::type_identity | 201806L | [ ` <type_traits> ` ](/w/cpp/header/type_traits "cpp/header/type traits") | (C++20) | [ P0887R1... | |
C++_Ranges_library/C++_Ranges_library_136_28.txt | xpect },
#endif
#define COMPILER_SPECIFIC_STRING(value) #value
#define COMPILER_SPECIFIC_ENTRY(name) { #name, COMPILER_SPECIFIC_STRING(name) },
class CompilerFeature
{
char const* name_; long data_; long std_;
public:
constexpr CompilerFeature(char const* name, long d... | |
C++_Ranges_library/param-pack.html4_41_0.txt | Of course, since C++17, many uses of recursion are better accomplished with
folds:
void
printall2(const auto &...args)
{
// binary left fold
(std::cout << ... << args);
} | |
C++_Ranges_library/C++_Ranges_library_2_3.txt | s::iota ` ](/w/cpp/ranges/iota_view "cpp/ranges/iota view")
The ranges library includes [ range algorithms ](/w/cpp/algorithm/ranges
"cpp/algorithm/ranges") , which are applied to ranges eagerly, and [ range
adaptors ](/w/cpp/ranges#Range_adaptors "cpp/ranges") , which are applied to
views lazily. Adaptors can be comp... | |
C++_Ranges_library/C++_Ranges_library_90_4.txt | m/w/cpp/concepts/invocable) < const __counted_fn & , Args... > .
Otherwise, no function call operator of ` ___counted_fn_ ` participates in
overload resolution.
### [ [ edit
](/mwiki/index.php?title=cpp/ranges/view_counted&action=edit§ion=1 "Edit
section: Notes") ] Notes
` views::counted ` does not check... | |
C++_Ranges_library/C++_Ranges_library_38_0.txt | ##### [ cppreference.com ](/)
[ Log in
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Fcommon+view
"You are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/cpp/ranges/common_view "View the content page \[c\]")
* [ Discussion ](/mwiki/index.php?title=... | |
C++_Ranges_library/C++_Ranges_library_22_1.txt | tible")
[ assignable_from ](/w/cpp/concepts/assignable_from "cpp/concepts/assignable
from")
| Comparison concepts
---
[ equality_comparable equality_comparable_with
](/w/cpp/concepts/equality_comparable "cpp/concepts/equality comparable")
[ totally_ordered totally_ordered_with ](/w/cpp/concepts/totall... | |
C++_Ranges_library/C++_Ranges_library_70_14.txt | d ](/w/cpp/thread/thread/id "cpp/thread/thread/id") and [ ` std::stacktrace ` ](/w/cpp/utility/basic_stacktrace "cpp/utility/basic stacktrace") | 202302L | [ ` <stacktrace> ` ](/w/cpp/header/stacktrace "cpp/header/stacktrace") [ ` <thread> ` ](/w/cpp/header/thread "cpp/header/thread") | (C++23) | [ P2693R1 ](http... | |
C++_Ranges_library/C++_Ranges_library_108_1.txt |
| [ iterator_t const_iterator_t sentinel_t const_sentinel_t
](/w/cpp/ranges/iterator_t "cpp/ranges/iterator t") (C++23) (C++23)
---
| [ range_const_reference_t range_rvalue_reference_t
range_common_reference_t ](/w/cpp/ranges/iterator_t "cpp/ranges/iterator t")
(C++23)
---
| [ elements_of ... | |
C++_Ranges_library/what-will-be-the-output-of-the-following-c-code--5ab8a41bc56b6664bc9bacdd8_7_0.txt | {
int i = 10; | |
C++_Ranges_library/C++_Ranges_library_158_1.txt | _t range_rvalue_reference_t
range_common_reference_t ](/w/cpp/ranges/iterator_t "cpp/ranges/iterator t")
(C++23)
---
| [ elements_of ](/w/cpp/ranges/elements_of "cpp/ranges/elements of")
(C++23)
---
[ Dangling iterator handling ](/w/cpp/ranges#Dangling_iterator_handling
"cpp/ra... | |
C++_Ranges_library/C++_Ranges_library_97_0.txt | ##### [ cppreference.com ](/)
[ Log in
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Fcartesian+product+view
"You are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/cpp/ranges/cartesian_product_view "View the content page \[c\]")
* [ Discussion ](/... | |
C++_Ranges_library/C++_Ranges_library_18_6.txt | /subrange") (C++20) | combines an iterator-sentinel pair into a [ ` view ` ](/w/cpp/ranges/view "cpp/ranges/view")
(class template) [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/ranges/dsc_subrange&action=edit)
### [ [ edit ](/mwiki/index.php?title=cpp/ranges&action=edit§ion=... | |
C++_Ranges_library/C++_Ranges_library_3_18.txt | e") ) | 202306L | [ ` <type_traits> ` ](/w/cpp/header/type_traits "cpp/header/type traits") | (C++26) | [ P2641R4 ](https://wg21.link/P2641R4)
` __cpp_lib_jthread ` | [ Stop token ](/w/cpp/thread/stop_token "cpp/thread/stop token") and [ joining thread ](/w/cpp/thread/jthread "cpp/thread/jthread") | 201911L ... | |
C++_Ranges_library/C++_Ranges_library_11_24.txt | 21.link/P1227R2)
` __cpp_lib_sstream_ from_string_view ` | Interfacing [ std::stringstream ](/w/cpp/io/basic_stringstream "cpp/io/basic stringstream") s with [ std::string_view ](/w/cpp/string/basic_string_view "cpp/string/basic string view") | 202306L | [ ` <sstream> ` ](/w/cpp/header/sstream "cpp/header/sstr... | |
C++_Ranges_library/C++_Ranges_library_29_37.txt | pe 2017-11 = 2017-11
... truncated ...
C++14 CORE (9/9)
__cpp_aggregate_nsdmi 2013-04 = 2013-04
__cpp_binary_literals 2013-04 = 2013-04
__cpp_constexpr 2022-11 > 2013-04
... truncated ..... | |
C++_Ranges_library/C++_Ranges_library_20_0.txt | ##### [ cppreference.com ](/)
[ Create account
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Fconcepts%2Fsame+as%29&type=signup)
* [ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Fconcepts%2Fsame+as%29 "You are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespac... | |
C++_Ranges_library/C++_Ranges_library_99_20.txt | | [ P0608R3 ](https://wg21.link/P0608R3) | 10 | 9 | 19.29 (16.10)* | 11.0.3* | | |
[ std::function ](/w/cpp/utility/functional/function "cpp/utility/functional/function") 's move constructor should be [ ` noexcept ` ](/w/cpp/language/noexcept "cpp/language/noexcept") | [ P0771R1 ](https://wg21.link/P077... | |
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_50_0.txt | Add a comment |
3 | |
C++_Ranges_library/C++_Ranges_library_12_0.txt | ##### [ cppreference.com ](/)
[ Log in
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Foutput+range
"You are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/cpp/ranges/output_range "View the content page \[c\]")
* [ Discussion ](/mwiki/index.php?titl... | |
C++_Ranges_library/C++_Ranges_library_59_44.txt | res copy_constructible<V> { return base_; }
constexpr V base() && { return std::move(base_); }
constexpr reverse_iterator<iterator_t<V>> begin();
constexpr reverse_iterator<iterator_t<V>> begin() requires common_range<V>;
constexpr auto begin() const requires common_range<const V>;... | |
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_51_0.txt | User input should be obtained as a string and then attempt-converted to
the data type you desire. Conveniently, this also allows you to answer
questions like “what type of data is my input?”
Here is a function I use a lot. Other options exist, such as in Boost, but the
basic premise is the same: attempt to perform... | |
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_109_0.txt | Sign up using Google
Sign up using Facebook | |
C++_Ranges_library/C++_Ranges_library_0_5.txt | ic_compare_exchange_strong_explicit ](/w/cpp/atomic/atomic_compare_exchange "cpp/atomic/atomic compare exchange") (C++11) (C++11) (C++11) (C++11) | atomically compares the value of the atomic object with non-atomic argument and performs atomic exchange if equal or atomic load if not
(function template) [ [edi... | |
C++_Ranges_library/C++_Ranges_library_155_4.txt | he size of a range
(customization point object) [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/ranges/dsc_ssize&action=edit)
[ ranges::empty ](/w/cpp/ranges/empty "cpp/ranges/empty") (C++20) | checks whether a range is empty
(customization point object) [ [edit]
](https://en.cppr... | |
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_63_0.txt | Improve this answer
Follow | |
C++_Ranges_library/C++_Ranges_library_82_7.txt |
[ Return types ](/w/cpp/algorithm/ranges#Return_types "cpp/algorithm/ranges")
| [ ranges::in_fun_result
](/w/cpp/algorithm/ranges/return_types/in_fun_result
"cpp/algorithm/ranges/return types/in fun result")
---
[ ranges::in_in_result ](/w/cpp/algorithm/ranges/return_types/in_in_result
"cpp/algorithm/ranges/re... | |
C++_Ranges_library/C++_Ranges_library_3_33.txt | RE_ENTRY(202110L, __cpp_lib_ranges_zip)
COMPILER_FEATURE_ENTRY(202202L, __cpp_lib_reference_from_temporary)
COMPILER_FEATURE_ENTRY(202202L, __cpp_lib_shift)
COMPILER_FEATURE_ENTRY(202106L, __cpp_lib_spanstream)
COMPILER_FEATURE_ENTRY(202011L, __cpp_lib_stacktrace)
COMPILER_FEATUR... | |
C++_Ranges_library/what-will-be-the-output-of-the-following-c-code--5ab8a41bc56b6664bc9bacdd8_38_0.txt | Q9. Assume X and Y are non-zero positive integers. consider the following
pseudo code fragment: while X <> Y do if X > y then X <\- X - Y else Y <\- Y -
X endif endwhile print (X) What is the code doing?
Q10. In which of the following looping constructs of the ‘C’ language, the
body of the loop is executed at least ... | |
C++_Ranges_library/C++_Ranges_library_112_3.txt | -
[ is_constant_evaluated ](/w/cpp/types/is_constant_evaluated "cpp/types/is constant evaluated") (C++20) | detects whether the call occurs within a constant-evaluated context
(function) [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/types/dsc_is_constant_evaluated&action=edit)
[ i... | |
C++_Ranges_library/C++_Ranges_library_7_12.txt | ator \- > ( ) ; } ) ; | (2) | ( exposition only* )
template < class T, class U >
concept /* different-from */ =
! [ std:: same_as ](http://en.cppreference.com/w/cpp/concepts/same_as) < [ std:: remove_cvref_t ](http://en.cppreference.com/w/cpp/types/remove_cvref) < T > , [ std:: remove_... | |
C++_Ranges_library/C++_Ranges_library_117_6.txt | `
adjacent_view ` satisfy [ ` borrowed_range ` ](/w/cpp/ranges/borrowed_range
"cpp/ranges/borrowed range") when the underlying view satisfies it.
### [ [ edit
](/mwiki/index.php?title=cpp/ranges/adjacent_view&action=edit§ion=6 "Edit
section: Notes") ] Notes
There are similarities between ranges::adjacent_view ... | |
C++_Ranges_library/C++_Ranges_library_74_8.txt |
### [ [ edit
](/mwiki/index.php?title=cpp/coroutine/generator&action=edit§ion=6 "Edit
section: Notes") ] Notes
[ Feature-test ](/w/cpp/utility/feature_test "cpp/utility/feature test") macro | Value | Std | Feature
---|---|---|---
[ ` __cpp_lib_generator ` ](/w/cpp/feature_test#cpp_lib_generator "cpp... | |
C++_Ranges_library/C++_Ranges_library_151_0.txt | ##### [ cppreference.com ](/)
[ Log in
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Fstride+view
"You are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/cpp/ranges/stride_view "View the content page \[c\]")
* [ Discussion ](/mwiki/index.php?title=... | |
C++_Ranges_library/C++_Ranges_library_103_4.txt | ember function)
[ size ](/w/cpp/ranges/reverse_view#size "cpp/ranges/reverse view") (C++20) | returns the size of the view if it is bounded
(public member function)
##### Inherited from [ std::ranges::view_interface
](/w/cpp/ranges/view_interface "cpp/ranges/view interface")
[ empty ](/w/cpp/ranges... | |
C++_Ranges_library/accumulate4_9_0.txt | Defined in header ` <numeric> ` | |
---|---|---
template < class InputIt, class T >
T accumulate ( InputIt first, InputIt last, T init ) ; | (1) | (constexpr since C++20)
template < class InputIt, class T, class BinaryOp >
T accumulate ( InputIt first, InputIt last, T init, BinaryOp o... | |
C++_Ranges_library/C++_Ranges_library_114_6.txt | /subrange") (C++20) | combines an iterator-sentinel pair into a [ ` view ` ](/w/cpp/ranges/view "cpp/ranges/view")
(class template) [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/ranges/dsc_subrange&action=edit)
### [ [ edit ](/mwiki/index.php?title=cpp/ranges&action=edit§ion=... | |
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_19_0.txt | Ask Question
Asked 10 years, 7 months ago | |
C++_Ranges_library/C++_Ranges_library_73_2.txt | ct initialization ](/w/cpp/language/direct_initialization "cpp/language/direct initialization") | 201902L | (C++20) | [ P0960R3 ](https://wg21.link/P0960R3)
` __cpp_alias_templates ` | [ Alias templates ](/w/cpp/language/type_alias "cpp/language/type alias") | 200704L | (C++11) | [ N2258 ](https://wg21.lin... | |
C++_Ranges_library/C++_Ranges_library_21_6.txt | aredTimedLockable ](/w/cpp/named_req/SharedTimedLockable "cpp/named req/SharedTimedLockable") (C++14) | a [ SharedLockable ](/w/cpp/named_req/SharedLockable "cpp/named req/SharedLockable") that supports timed lock acquisition
(named requirement)
[ Mutex ](/w/cpp/named_req/Mutex "cpp/named req/Mutex") (C++11) ... | |
C++_Ranges_library/C++_Ranges_library_97_3.txt | Iterator ](/w/cpp/ranges/cartesian_product_view/iterator
"cpp/ranges/cartesian product view/iterator")
Member functions
[ cartesian_product_view:: _iterator_ :: _iterator_
](/w/cpp/ranges/cartesian_product_view/iterator/iterator "cpp/ranges/cartesian
product view/iterator/iterator")
[ cartesian_product_view:: _i... | |
C++_Ranges_library/what-will-be-the-output-of-the-following-c-code--5ab8a41bc56b6664bc9bacdd8_34_0.txt | Q1. The code for C: # include <stdio.h> int main () { int i = 0; while (i <
3) i++; printf (" In while loop\n"); } How many times 'i' value is checked?
Q2. Determine the output of the given program. main() { int i = 8; while (i =
8) { printf ("Getting out"); i++; } } | |
C++_Ranges_library/C++_Ranges_library_59_67.txt | ort)
* [ Recent changes ](/w/Special:RecentChanges "A list of recent changes in the wiki \[r\]")
* [ FAQ ](/w/Cppreference:FAQ)
* [ Offline version ](/w/Cppreference:Archives)
##### Toolbox
* [ What links here ](/w/Special:WhatLinksHere/cpp/header/ranges "A list of all wiki pages that link here \[j\]")
* [... | |
C++_Ranges_library/C++_Ranges_library_95_23.txt | ](/w/cpp/memory/shared_ptr/make_shared "cpp/memory/shared ptr/make shared") | 201707L | [ ` <memory> ` ](/w/cpp/header/memory "cpp/header/memory") | (C++20) | [ P0674R1 ](https://wg21.link/P0674R1)
` __cpp_lib_shared_ptr_weak_type ` | [ ` shared_ptr::weak_type ` ](/w/cpp/memory/shared_ptr "cpp/memory/shared pt... | |
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_99_0.txt | You could use :
int a = 12;
if (a>0 || a<0){
cout << "Your text"<<endl;
}
| |
C++_Ranges_library/what-will-be-the-output-of-the-following-c-code--5ab8a41bc56b6664bc9bacdd8_71_0.txt | Get Free Access Now
| |
C++_Ranges_library/C++_Ranges_library_64_27.txt | rary
# include <boost/optional.hpp>
# else // Not found at all
# error "Missing <optional>"
# endif
#endif
#ifdef __has_cpp_attribute // Check if __has_cpp_attribute is present
# if __has_cpp_attribute(deprecated) ... | |
C++_Ranges_library/C++_Ranges_library_3_4.txt | gory "cpp/language/value category") | 201606L | (C++17) | [ P0135R1 ](https://wg21.link/P0135R1)
` __cpp_hex_float ` | [ Hexadecimal floating literals ](/w/cpp/language/floating_literal "cpp/language/floating literal") | 201603L | (C++17) | [ P0245R1 ](https://wg21.link/P0245R1)
` __cpp_if_consteval ` | ... | |
C++_Ranges_library/C++_Ranges_library_3_21.txt | view") | 202207L | [ ` <ranges> ` ](/w/cpp/header/ranges "cpp/header/ranges") | (C++23) | [ P2278R4 ](https://wg21.link/P2278R4)
Making std::basic_const_iterator follow its underlying type's convertibility | 202311L | [ ` <ranges> ` ](/w/cpp/header/ranges "cpp/header/ranges") | (C++26) | [ P2836R1 ](h... | |
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_11_0.txt | 10. Communities for your favorite technologies. Explore all Collectives
2. Teams | |
C++_Ranges_library/C++_Ranges_library_59_43.txt | split_view<V, Pattern>::sentinel {
private:
sentinel_t<V> end_ = sentinel_t<V>(); // exposition only
public:
sentinel() = default;
constexpr explicit sentinel(split_view& parent);
friend constexpr bool operator==(const iterator& x, const sentinel& y... | |
C++_Ranges_library/param-pack.html4_43_0.txt |
template<char ...Cs>
struct string_holder {
static constexpr std::size_t len = sizeof...(Cs);
static constexpr char value[] = { Cs..., '\0' };
constexpr operator const char *() const { return value; }
constexpr operator std::string() const { return { value, len }; }
};
... | |
C++_Ranges_library/C++_Ranges_library_148_3.txt | guous_range concept is a refinement of [ ` range `
](/w/cpp/ranges/range "cpp/ranges/range") for which ranges::begin returns a
model of [ ` contiguous_iterator ` ](/w/cpp/iterator/contiguous_iterator
"cpp/iterator/contiguous iterator") and the customization point [ ranges::
data ](http://en.cppreference.com/w/cpp/... | |
C++_Ranges_library/C++_Ranges_library_126_3.txt | https://wg21.link/P1668R1)
Changing the active member of a union in constant evaluation | 202002L | (C++20) | [ P1330R0 ](https://wg21.link/P1330R0)
[ P2493R0 ](https://wg21.link/P2493R0)
Non- [ literal ](/w/cpp/named_req/LiteralType "cpp/named req/LiteralType") variables, labels, and [ ` goto ` ](/w/cpp/l... | |
C++_Ranges_library/C++_Ranges_library_149_1.txt | ator_t sentinel_t const_sentinel_t
](/w/cpp/ranges/iterator_t "cpp/ranges/iterator t") (C++23) (C++23)
---
| [ range_const_reference_t range_rvalue_reference_t
range_common_reference_t ](/w/cpp/ranges/iterator_t "cpp/ranges/iterator t")
(C++23)
---
| [ elements_of ](/w/cpp/ranges/elements_of... | |
C++_Ranges_library/C++_Ranges_library_95_17.txt | ader/functional") | (C++17) | [ N4169 ](https://wg21.link/N4169)
` __cpp_lib_invoke_r ` | [ ` std::invoke_r ` ](/w/cpp/utility/functional/invoke "cpp/utility/functional/invoke") | 202106L | [ ` <functional> ` ](/w/cpp/header/functional "cpp/header/functional") | (C++23) | [ P2136R3 ](https://wg21.link/P2136... | |
C++_Ranges_library/C++_Ranges_library_145_0.txt | ##### [ cppreference.com ](/)
[ Log in
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Fcdata "You
are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/cpp/ranges/cdata "View the content page \[c\]")
* [ Discussion ](/mwiki/index.php?title=Talk:cpp/ran... | |
C++_Ranges_library/C++_Ranges_library_120_3.txt | "cpp/ranges/subrange/next")
[ subrange::prev ](/w/cpp/ranges/subrange/prev "cpp/ranges/subrange/prev")
[ Deduction guides ](/w/cpp/ranges/subrange/deduction_guides
"cpp/ranges/subrange/deduction guides")
[ Non-member functions ](/w/cpp/ranges/subrange#Non-member_functions
"cpp/ranges/subrange")
[ get (std::ra... | |
C++_Ranges_library/C++_Ranges_library_11_38.txt | ### Navigation
* [ Support us ](http://www.cppreference.com/support)
* [ Recent changes ](/w/Special:RecentChanges "A list of recent changes in the wiki \[r\]")
* [ FAQ ](/w/Cppreference:FAQ)
* [ Offline version ](/w/Cppreference:Archives)
##### Toolbox
* [ What links here ](/w/Special:WhatLinksHere/cpp/... | |
C++_Ranges_library/C++_Ranges_library_95_15.txt | | Freestanding std::mdspan | 202311L | [ ` <mdspan> ` ](/w/cpp/header/mdspan "cpp/header/mdspan") | (C++26) | [ P2833R2 ](https://wg21.link/P2833R2)
` __cpp_lib_freestanding_memory ` | Freestanding facilities in [ ` <memory> ` ](/w/cpp/header/memory "cpp/header/memory") | 202306L | [ ` <memory> ` ](/w/c... | |
C++_Ranges_library/param-pack.html4_31_0.txt | Function parameter packs consist of values in the argument list of a function.
Weâve seen examples like ` c ` in ` expand(C...c) ` and ` i ` in `
sum(std::convertible_to<int> auto ...i) ` . Thereâs a big restriction that a
function parameter pack must either itself be a pack expansion (as in ` expand
` ) or else ... | |
C++_Ranges_library/C++_Ranges_library_141_4.txt | gory "cpp/language/value category") | 201606L | (C++17) | [ P0135R1 ](https://wg21.link/P0135R1)
` __cpp_hex_float ` | [ Hexadecimal floating literals ](/w/cpp/language/floating_literal "cpp/language/floating literal") | 201603L | (C++17) | [ P0245R1 ](https://wg21.link/P0245R1)
` __cpp_if_consteval ` | ... | |
C++_Ranges_library/C++_Ranges_library_137_4.txt | 2325R3) | C++20 | ` view ` required [ ` default_initializable ` ](/w/cpp/concepts/default_initializable "cpp/concepts/default initializable") | does not require
[ LWG 3549 ](https://cplusplus.github.io/LWG/issue3549) | C++20 | ` enable_view ` did not detect inheritance from ` view_interface ` | detects
[ ... | |
C++_Ranges_library/C++_Ranges_library_149_5.txt | ion
* [ Support us ](http://www.cppreference.com/support)
* [ Recent changes ](/w/Special:RecentChanges "A list of recent changes in the wiki \[r\]")
* [ FAQ ](/w/Cppreference:FAQ)
* [ Offline version ](/w/Cppreference:Archives)
##### Toolbox
* [ What links here ](/w/Special:WhatLinksHere/cpp/ranges/view_... | |
C++_Ranges_library/C++_Ranges_library_10_17.txt | ontainer/unordered set/merge") [ | ` merge `
--- ](/w/cpp/container/unordered_multiset/merge "cpp/container/unordered multiset/merge") [ | ` merge `
--- ](/w/cpp/container/unordered_map/merge "cpp/container/unordered map/merge") [ | ` merge `
--- ](/w/cpp/container/unordered_multimap/merge "cpp/container/unord... | |
C++_Ranges_library/C++_Ranges_library_130_32.txt | this_parameter)
COMPILER_FEATURE_ENTRY(202106L, __cpp_if_consteval)
COMPILER_FEATURE_ENTRY(202207L, __cpp_implicit_move)
COMPILER_FEATURE_ENTRY(202211L, __cpp_multidimensional_subscript)
COMPILER_FEATURE_ENTRY(202207L, __cpp_named_character_escapes)
COMPILER_FEATURE_ENTRY(202211L... | |
C++_Ranges_library/C++_Ranges_library_155_2.txt | counted ](/w/cpp/ranges/view_counted "cpp/ranges/view counted")
[ common_view views::common ](/w/cpp/ranges/common_view "cpp/ranges/common
view")
| [ reverse_view views::reverse ](/w/cpp/ranges/reverse_view
"cpp/ranges/reverse view")
---
[ as_const_view views::as_const ](/w/cpp/ranges/as_const_... | |
C++_Ranges_library/C++_Ranges_library_9_5.txt | s [ ` input_iterator ` ](/w/cpp/iterator/input_iterator "cpp/iterator/input iterator")
(concept) [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/ranges/dsc_input_range&action=edit)
[ ranges::output_range ](/w/cpp/ranges/output_range "cpp/ranges/output range") (C++20) | specifies a ran... | |
C++_Ranges_library/C++_Ranges_library_82_14.txt | rithm/ranges&action=edit§ion=3 "Edit
section: Constrained fold operations") ] Constrained fold operations
Defined in header ` [ <algorithm> ](/w/cpp/header/algorithm
"cpp/header/algorithm") `
---
Defined in namespace ` std::ranges `
[ ranges::fold_left ](/w/cpp/algorithm/ranges/fold_left "cpp/algorithm/ran... | |
C++_Ranges_library/C++_Ranges_library_126_0.txt | ##### [ cppreference.com ](/)
[ Log in
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Ffeature+test "You
are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/cpp/feature_test "View the content page \[c\]")
* [ Discussion ](/w/Talk:cpp/feature_test "Discussion ... | |
C++_Ranges_library/what-will-be-the-output-of-the-following-c-code--5ab8a41bc56b6664bc9bacdd8_61_0.txt | Testbook Edu Solutions Pvt. Ltd.
1st & 2nd Floor, Zion Building,
Plot No. 273, Sector 10, Kharghar,
Navi Mumbai - 410210 | |
C++_Ranges_library/C++_Ranges_library_59_16.txt | >, Pattern>
class join_with_view; // freestanding
namespace views { inline constexpr /* unspecified */ join_with = /* unspecified */; }
// freestanding
// lazy split ... | |
C++_Ranges_library/C++_Ranges_library_109_27.txt | rary
# include <boost/optional.hpp>
# else // Not found at all
# error "Missing <optional>"
# endif
#endif
#ifdef __has_cpp_attribute // Check if __has_cpp_attribute is present
# if __has_cpp_attribute(deprecated) ... | |
C++_Ranges_library/what-will-be-the-output-of-the-following-c-code--5ab8a41bc56b6664bc9bacdd8_55_0.txt | Important Exam
* SSC CGL SSC CHSL SSC JE SSC CPO
* IBPS PO IBPS Clerk IBPS RRB PO IBPS RRB Clerk
* IBPS SO SBI PO SBI Clerk CUET
* UGC NET RBI Grade B RBI Assistant UPSC IAS
* UPSC CAPF AC UPSC CDS UPSC IES UPSC NDA
* RRB NTPC RRB Group D RRB JE RRB SSE
* LIC AAO LIC Assistant N... | |
C++_Ranges_library/C++_Ranges_library_140_23.txt | FFTW, JPEG, TIFF, ZLIB, PNG, GLAD, GLFW3. ( [ Doc ](https://github.com/alandefreitas/matplotplusplus/blob/master/docs/README.md) ) | MIT | cmake
[ plotutils ](https://www.gnu.org/software/plotutils/) | The GNU **plotutils** package contains **libplot** , a C/C++ library for exporting 2-D vector graphics in man... | |
C++_Ranges_library/C++_Ranges_library_153_12.txt | r/vector") | 201907L | [ ` <vector> ` ](/w/cpp/header/vector "cpp/header/vector") | (C++20) | [ P1004R2 ](https://wg21.link/P1004R2)
` __cpp_lib_containers_ranges ` | [ Ranges-aware ](/w/cpp/ranges/to#container_compatible_range "cpp/ranges/to") construction and insertion for containers and strings | 202202L ... | |
C++_Ranges_library/C++_Ranges_library_153_7.txt | 3) | [ P0401R6 ](https://wg21.link/P0401R6)
[ P2652R2 ](https://wg21.link/P2652R2)
[ LWG3887 ](https://wg21.link/LWG3887)
` __cpp_lib_allocator_ traits_is_always_equal ` | [ ` std::allocator_traits::is_always_equal ` ](/w/cpp/memory/allocator_traits "cpp/memory/allocator traits") | 201411L | [ ` <memory> ... | |
C++_Ranges_library/C++_Ranges_library_136_23.txt | ](/w/cpp/memory/shared_ptr/make_shared "cpp/memory/shared ptr/make shared") | 201707L | [ ` <memory> ` ](/w/cpp/header/memory "cpp/header/memory") | (C++20) | [ P0674R1 ](https://wg21.link/P0674R1)
` __cpp_lib_shared_ptr_weak_type ` | [ ` shared_ptr::weak_type ` ](/w/cpp/memory/shared_ptr "cpp/memory/shared pt... | |
C++_Ranges_library/C++_Ranges_library_103_7.txt | \[p\]")
* [ Permanent link ](/mwiki/index.php?title=cpp/ranges/reverse_view&oldid=160905 "Permanent link to this revision of the page")
* [ Page information ](/mwiki/index.php?title=cpp/ranges/reverse_view&action=info)
* In other languages
* [ Español ](http://es.cppreference.com/w/cpp/ranges/reverse_view "c... | |
C++_Ranges_library/what-will-be-the-output-of-the-following-c-code--5ab8a41bc56b6664bc9bacdd8_16_0.txt | Explore Supercoaching For FREE
Free Tests | |
C++_Ranges_library/C++_Ranges_library_95_14.txt | d ](/w/cpp/thread/thread/id "cpp/thread/thread/id") and [ ` std::stacktrace ` ](/w/cpp/utility/basic_stacktrace "cpp/utility/basic stacktrace") | 202302L | [ ` <stacktrace> ` ](/w/cpp/header/stacktrace "cpp/header/stacktrace") [ ` <thread> ` ](/w/cpp/header/thread "cpp/header/thread") | (C++23) | [ P2693R1 ](http... | |
C++_Ranges_library/C++_Ranges_library_99_19.txt | t_ceil() ` ](/w/cpp/numeric/bit_ceil "cpp/numeric/bit ceil") , [ ` std::bit_floor() ` ](/w/cpp/numeric/bit_floor "cpp/numeric/bit floor") , [ ` std::bit_width() ` ](/w/cpp/numeric/bit_width "cpp/numeric/bit width") , [ ` std::has_single_bit() ` ](/w/cpp/numeric/has_single_bit "cpp/numeric/has single bit") | [ P0556R3 ... | |
C++_Ranges_library/C++_Ranges_library_138_1.txt | ntinel_t const_sentinel_t
](/w/cpp/ranges/iterator_t "cpp/ranges/iterator t") (C++23) (C++23)
---
| [ range_const_reference_t range_rvalue_reference_t
range_common_reference_t ](/w/cpp/ranges/iterator_t "cpp/ranges/iterator t")
(C++23)
---
| [ elements_of ](/w/cpp/ranges/elements_of "cpp/rang... | |
C++_Ranges_library/C++_Ranges_library_57_14.txt | d ](/w/cpp/thread/thread/id "cpp/thread/thread/id") and [ ` std::stacktrace ` ](/w/cpp/utility/basic_stacktrace "cpp/utility/basic stacktrace") | 202302L | [ ` <stacktrace> ` ](/w/cpp/header/stacktrace "cpp/header/stacktrace") [ ` <thread> ` ](/w/cpp/header/thread "cpp/header/thread") | (C++23) | [ P2693R1 ](http... | |
C++_Ranges_library/C++_Ranges_library_1_0.txt | ##### [ cppreference.com ](/)
[ Create account
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Ffilter+view%29%28even%29&type=signup)
* [ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Ffilter+view%29%28even%29 "You are encouraged to log in; however, it is not mandatory ... | |
C++_Ranges_library/C++_Ranges_library_11_20.txt | 0307R2 ](https://wg21.link/P0307R2)
Fully ` constexpr ` [ std::optional ](/w/cpp/utility/optional "cpp/utility/optional") | 202106L | [ ` <optional> ` ](/w/cpp/header/optional "cpp/header/optional") | (C++20)
(DR) | [ P2231R1 ](https://wg21.link/P2231R1)
[ Monadic operations ](/w/cpp/utility/optional#Mona... | |
C++_Ranges_library/C++_Ranges_library_109_16.txt | p "cpp/header/map") [ ` <set> ` ](/w/cpp/header/set "cpp/header/set") | (C++14) | [ N3657 ](https://wg21.link/N3657)
` __cpp_lib_generic_ unordered_lookup ` | Heterogeneous comparison lookup in [ unordered associative containers ](/w/cpp/container#Unordered_associative_containers "cpp/container") | 201811L | ... | |
C++_Ranges_library/C++_Ranges_library_5_4.txt | efined in header ` [ <fstream> ](/w/cpp/header/fstream "cpp/header/fstream")
`
[ std::filebuf ](/w/cpp/io/basic_filebuf "cpp/io/basic filebuf") | [ std:: basic_filebuf ](http://en.cppreference.com/w/cpp/io/basic_filebuf) < char >
[ std::wfilebuf ](/w/cpp/io/basic_filebuf "cpp/io/basic filebuf") | [ std:: basi... | |
C++_Ranges_library/C++_Ranges_library_128_12.txt | ator \- > ( ) ; } ) ; | (2) | ( exposition only* )
template < class T, class U >
concept /* different-from */ =
! [ std:: same_as ](http://en.cppreference.com/w/cpp/concepts/same_as) < [ std:: remove_cvref_t ](http://en.cppreference.com/w/cpp/types/remove_cvref) < T > , [ std:: remove_... | |
C++_Ranges_library/C++_Ranges_library_43_10.txt | system&action=edit)
### Regular Expressions library
[ <regex> ](/w/cpp/header/regex "cpp/header/regex") (C++11) | [ Classes, algorithms and iterators to support regular expression processing ](/w/cpp/regex "cpp/regex") [ [edit] ](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/header/dsc_reg... | |
C++_Ranges_library/C++_Ranges_library_122_3.txt | iki/index.php?title=Template:cpp/numeric/dsc_lerp&action=edit)
### [ [ edit ](/mwiki/index.php?title=cpp/numeric&action=edit§ion=11
"Edit section: Saturation arithmetic \(since C++26\)") ] Saturation
arithmetic (since C++26)
Defined in header ` [ <numeric> ](/w/cpp/header/numeric "cpp/header/numeric")
`
... | |
C++_Ranges_library/C++_Ranges_library_44_7.txt | [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/ranges/dsc_owning_view&action=edit)
[ ranges::filter_view views::filter ](/w/cpp/ranges/filter_view "cpp/ranges/filter view") (C++20) | a [ ` view ` ](/w/cpp/ranges/view "cpp/ranges/view") that consists of the elements of a [ ` range ` ](... | |
C++_Ranges_library/C++_Ranges_library_150_37.txt | pe 2017-11 = 2017-11
... truncated ...
C++14 CORE (9/9)
__cpp_aggregate_nsdmi 2013-04 = 2013-04
__cpp_binary_literals 2013-04 = 2013-04
__cpp_constexpr 2022-11 > 2013-04
... truncated ..... | |
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_43_0.txt | * Check it man. Compile the code with a message. If you enter 'a' it will throw the fail bit
– Chemistpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.