id
stringlengths
16
145
text
stringlengths
1
179k
title
stringclasses
1 value
C++_Ranges_library/C++_Ranges_library_57_19.txt
[ ` <mdspan> ` ](/w/cpp/header/mdspan "cpp/header/mdspan") | (C++23) | [ P0009R18 ](https://wg21.link/P0009R18) [ P2599R2 ](https://wg21.link/P2599R2) [ P2604R0 ](https://wg21.link/P2604R0) [ P2613R1 ](https://wg21.link/P2613R1) ` __cpp_lib_memory_resource ` | [ std::pmr::memory_resource ](/w/cpp/memory/me...
C++_Ranges_library/C++_Ranges_library_96_6.txt
it] ](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/types/dsc_is_pod&action=edit) [ is_literal_type ](/w/cpp/types/is_literal_type "cpp/types/is literal type") (C++11) (deprecated in C++17) (removed in C++20) | checks if a type is a literal type (class template) [ [edit] ](https://en.cpprefe...
C++_Ranges_library/C++_Ranges_library_72_1.txt
+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/ranges/elements of") (C++23) --- [ Dangling iterator handling ](/w/cpp...
C++_Ranges_library/what-will-be-the-output-of-the-following-c-code--5ab8a41bc56b6664bc9bacdd8_19_0.txt
20 Questions 60 Marks 25 Mins Start Now
C++_Ranges_library/C++_Ranges_library_140_17.txt
ten non-re-entrant, but sometimes useful. | | [ cpp-mmf ](https://github.com/carlomilanesi/cpp-mmf/) | A C++98 library that encapsulates memory-mapped-files for POSIX or Windows | | [ cxxomfort ](https://ryan.gulix.cl/fossil.cgi/cxxomfort/) | Backports of C++ features (C++11 to C++03 and C++1y proposals to ...
C++_Ranges_library/C++_Ranges_library_155_14.txt
ru.cppreference.com/w/cpp/ranges "cpp/ranges") * [ 中文 ](http://zh.cppreference.com/w/cpp/ranges "cpp/ranges") * This page was last modified on 23 March 2024, at 06:26. * This page has been accessed 999,598 times. * [ Privacy policy ](/w/Cppreference:Privacy_policy "Cppreference:Privacy policy") * [ About ...
C++_Ranges_library/C++_Ranges_library_36_4.txt
yRange<T, N>> = false;   template<typename T, [std::size_t](http://en.cppreference.com/w/cpp/types/size_t) N> struct MyBorrowedRange : [std::span](http://en.cppreference.com/w/cpp/container/span)<T, N> {};   template<typename T, [std::size_t](http://en.cppreference.com/w/cpp/types/size_t) N> inl...
C++_Ranges_library/C++_Ranges_library_38_1.txt
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 ](/w/cpp/ranges...
C++_Ranges_library/C++_Ranges_library_99_16.txt
Stronger Unicode requirements | [ P1041R4 ](https://wg21.link/P1041R4) [ P1139R2 ](https://wg21.link/P1139R2) | 10 | Yes | 19.0 (2015)* (P1041R4) 19.26* (P1139R2) | Yes | N/A | 2023.1* | | | | | | 11.0 | | 12.0 ` <=> != == ` | [ P1185R2 ](https://wg21.link/P1185R2) | 10 | 10 |...
C++_Ranges_library/C++_Ranges_library_39_4.txt
constructor) ](/mwiki/index.php?title=cpp/container/flat_multiset/flat_multiset&action=edit&redlink=1 "cpp/container/flat multiset/flat multiset \(page does not exist\)") (C++23) | constructs the ` flat_multiset ` from a range (public member function of ` std::flat_multiset<Key,Compare,KeyContainer> ` ) [ (cons...
C++_Ranges_library/C++_Ranges_library_109_8.txt
set> ` ](/w/cpp/header/unordered_set "cpp/header/unordered set") | (C++26) | [ P2363R5 ](https://wg21.link/P2363R5) ` __cpp_lib_assume_aligned ` | [ std::assume_aligned ](/w/cpp/memory/assume_aligned "cpp/memory/assume aligned") | 201811L | [ ` <memory> ` ](/w/cpp/header/memory "cpp/header/memory") | (C++20) ...
C++_Ranges_library/what-will-be-the-output-of-the-following-c-code--5ab8a41bc56b6664bc9bacdd8_13_0.txt
## Answer (Detailed Solution Below) Option 2 : 10 10 10 10 10
C++_Ranges_library/C++_Ranges_library_111_7.txt
[ Español ](http://es.cppreference.com/w/cpp/ranges/single_view "cpp/ranges/single view") * [ 日本語 ](http://ja.cppreference.com/w/cpp/ranges/single_view "cpp/ranges/single view") * [ Русский ](http://ru.cppreference.com/w/cpp/ranges/single_view "cpp/ranges/single view") * [ 中文 ](http://zh.cppreference.com/w/cpp/ra...
C++_Ranges_library/C++_Ranges_library_136_6.txt
ents ](/w/cpp/language/template_parameters#Template_template_arguments "cpp/language/template parameters") | 201611L | (C++17) | [ P0522R0 ](https://wg21.link/P0522R0) ` __cpp_threadsafe_static_init ` | [ Dynamic initialization and destruction with concurrency ](/w/cpp/language/storage_duration#Static_local_var...
C++_Ranges_library/C++_Ranges_library_129_0.txt
##### [ cppreference.com ](/) [ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Fbasic+istream+view "You are encouraged to log in; however, it is not mandatory \[o\]") ##### Namespaces * [ Page ](/w/cpp/ranges/basic_istream_view "View the content page \[c\]") * [ Discussion ](/mwiki/in...
C++_Ranges_library/C++_Ranges_library_95_1.txt
` #elif ` ](/w/cpp/preprocessor/conditional "cpp/preprocessor/conditional") . It is treated as a defined macro by [ ` #ifdef ` ](/w/cpp/preprocessor/conditional "cpp/preprocessor/conditional") , [ ` #ifndef ` ](/w/cpp/preprocessor/conditional "cpp/preprocessor/conditional") , [ ` #elifdef ` ](/w/cpp/preprocessor/condi...
C++_Ranges_library/C++_Ranges_library_153_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/checking-cin-input-stream-produces-an-integer9_126_0.txt
0 My 1st Quiz - Issue (C++)
C++_Ranges_library/C++_Ranges_library_13_1.txt
ange_size_t range_difference_t range_value_t range_reference_t ** --- | ** iterator_t const_iterator_t sentinel_t const_sentinel_t ** (C++23) (C++23) --- | ** range_const_reference_t range_rvalue_reference_t range_common_reference_t ** (C++23) --- | [ elements_of ](/w/cpp/ranges...
C++_Ranges_library/C++_Ranges_library_113_3.txt
e) < T >> is incomplete, then the call to ` ranges::data ` is ill-formed, no diagnostic required. If the argument is an lvalue or [ ranges:: enable_borrowed_range ](http://en.cppreference.com/w/cpp/ranges/borrowed_range) < [ std:: remove_cv_t ](http://en.cppreference.com/w/cpp/types/remove_cv) < T >> is true , a...
C++_Ranges_library/C++_Ranges_library_141_29.txt
cxx14_lib[] = { COMPILER_FEATURE_ENTRY(201304L, __cpp_lib_chrono_udls) COMPILER_FEATURE_ENTRY(201309L, __cpp_lib_complex_udls) COMPILER_FEATURE_ENTRY(201304L, __cpp_lib_exchange_function) COMPILER_FEATURE_ENTRY(201304L, __cpp_lib_generic_associative_lookup) COMPILER_FEATURE_ENTRY...
C++_Ranges_library/accumulate4_8_0.txt
Numerics library Common mathematical functions --- Mathematical special functions (C++17) Mathematical constants (C++20) Basic linear algebra algorithms (C++26) Floating-point environment (C++11) Complex numbers Numeric arrays Pseudo-random number generation Factor operations gcd (C++17) lcm...
C++_Ranges_library/C++_Ranges_library_32_17.txt
reference.com/w/cpp/utility/forward)<T>(t); // not required to be equality-preserving }; } #### [ [ edit ](/mwiki/index.php?title=Template:cpp/synopsis/iterator&action=edit&section=T-3 "Template:cpp/synopsis/iterator") ] Concept [ ` weakly_incrementable ` ](/w/cpp/iterator/weakly_incrementable "cpp/ite...
C++_Ranges_library/C++_Ranges_library_44_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_59_56.txt
ator*() const noexcept(/* see description */); constexpr iterator& operator++(); constexpr iterator operator++(int); constexpr iterator& operator--() requires bidirectional_range<Base>; constexpr iterator operator--(int) requires bidirectional_range<Base>; constexpr iterator& ope...
C++_Ranges_library/C++_Ranges_library_64_36.txt
or/end)(cxx11_core), add); if (print.cxx98) [std::for_each](http://en.cppreference.com/w/cpp/algorithm/for_each)([std::begin](http://en.cppreference.com/w/cpp/iterator/begin)(cxx98_core), [std::end](http://en.cppreference.com/w/cpp/iterator/end)(cxx98_core), add); [std::snprintf](http://en.cppre...
C++_Ranges_library/C++_Ranges_library_3_25.txt
on "cpp/language/operator comparison") (library support); adding three-way comparison to the library | 201907L | [ ` <compare> ` ](/w/cpp/header/compare "cpp/header/compare") | (C++20) | [ P0768R1 ](https://wg21.link/P0768R1) [ P1614R2 ](https://wg21.link/P1614R2) ` __cpp_lib_to_address ` | Utility to conv...
C++_Ranges_library/C++_Ranges_library_109_10.txt
](https://wg21.link/P2592R3) ` __cpp_lib_chrono_udls ` | [ User-defined literals for time types ](/w/cpp/chrono/duration#Literals "cpp/chrono/duration") | 201304L | [ ` <chrono> ` ](/w/cpp/header/chrono "cpp/header/chrono") | (C++14) | [ N3642 ](https://wg21.link/N3642) ` __cpp_lib_clamp ` | [ std::clamp ]...
C++_Ranges_library/C++_Ranges_library_13_3.txt
nd ](http://en.cppreference.com/w/cpp/ranges-ranges-placeholder/end) ( [ std:: declval ](http://en.cppreference.com/w/cpp/utility/declval) < R & > ( ) ) ) ; | (3) | (since C++20) template < [ ranges:: range ](http://en.cppreference.com/w/cpp/ranges/range) R > using const_sentinel_t = decltype (...
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_36_0.txt
#include <iostream> int main() { int x; std::cin >> x; while(std::cin.fail()) { std::cout << "Error" << std::endl; std::cin.clear(); std::cin.ignore(256,'\n'); std::cin >> x; } std::cout << x <<...
C++_Ranges_library/C++_Ranges_library_39_2.txt
y_split_view "cpp/ranges/lazy split view") [ split_view views::split ](/w/cpp/ranges/split_view "cpp/ranges/split view") [ views::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 vie...
C++_Ranges_library/C++_Ranges_library_56_7.txt
"cpp/iterator/begin") (since C++11) [ ` bernoulli_distribution ` ](/w/cpp/numeric/random/bernoulli_distribution "cpp/numeric/random/bernoulli distribution") <> (since C++11) [ ` beta() ` ](/w/cpp/numeric/special_functions/beta "cpp/numeric/special functions/beta") (since C++17) [ ` betaf() ` ](/w/cpp/numeric/spe...
C++_Ranges_library/C++_Ranges_library_99_2.txt
1.link/P2748R5) | 14 | | | | | | | | | | | | | Attributes for [ structured bindings ](/w/cpp/language/structured_binding "cpp/language/structured binding") | [ P0609R3 ](https://wg21.link/P0609R3) | | | | | | | | | | | | | | Erroneous behavior for [ uninitialized reads ](/w/cpp/languag...
C++_Ranges_library/C++_Ranges_library_79_2.txt
g. the FAT filesystem lacks symbolic links and forbids multiple hardlinks). In those cases, errors must be reported. The behavior is [ undefined ](/w/cpp/language/ub "cpp/language/ub") if the calls to functions in this library introduce a _file system race_ , that is, when multiple threads, processes, or computers int...
C++_Ranges_library/C++_Ranges_library_133_0.txt
##### [ cppreference.com ](/) [ Create account ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Fio%2Fcout%29&type=signup) * [ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Fio%2Fcout%29 "You are encouraged to log in; however, it is not mandatory \[o\]") ##### Namespaces * [ Page ](/...
C++_Ranges_library/C++_Ranges_library_3_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/checking-cin-input-stream-produces-an-integer9_116_0.txt
## Not the answer you're looking for? Browse other questions tagged
C++_Ranges_library/C++_Ranges_library_126_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_124_0.txt
##### [ cppreference.com ](/) [ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp "You are encouraged to log in; however, it is not mandatory \[o\]") ##### Namespaces * [ Page ](/w/cpp "View the content page \[c\]") * [ Discussion ](/w/Talk:cpp "Discussion about the content page \[t\]") ##### Va...
C++_Ranges_library/C++_Ranges_library_70_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_145_1.txt
+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/ranges/elements of") (C++23) --- [ Dangling iterator handling ](/w/cpp...
C++_Ranges_library/C++_Ranges_library_128_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/C++_Ranges_library_88_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/checking-cin-input-stream-produces-an-integer9_118_0.txt
* The Overflow Blog * Upcoming research at Stack Overflow * The reverse mullett model of software engineering
C++_Ranges_library/C++_Ranges_library_59_54.txt
requires random_access_range<Base>; constexpr iterator& operator-=(difference_type x) requires random_access_range<Base>;   constexpr auto operator[](difference_type n) const requires random_access_range<Base>;   friend constexpr bool operator==(const iterato...
C++_Ranges_library/C++_Ranges_library_150_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/C++_Ranges_library_46_6.txt
` __cpp_lib_generic_unordered_lookup ` | 201811L | [ ` <unordered_map> ` ](/w/cpp/header/unordered_map "cpp/header/unordered map") [ ` <unordered_set> ` ](/w/cpp/header/unordered_set "cpp/header/unordered set") ` __cpp_lib_hardware_interference_size ` | 201703L | [ ` <new> ` ](/w/cpp/header/new "cpp/header/n...
C++_Ranges_library/C++_Ranges_library_2_13.txt
lib_ranges_to_container ` ](/w/cpp/feature_test#cpp_lib_ranges_to_container "cpp/feature test") | 202202L | (C++23) | std::ranges::to [ ` __cpp_lib_ranges_zip ` ](/w/cpp/feature_test#cpp_lib_ranges_zip "cpp/feature test") | 202110L | (C++23) | std::ranges::zip_view , std::ranges::zip_transform_view , ...
C++_Ranges_library/C++_Ranges_library_40_1.txt
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 ](/w/cpp/ranges/element...
C++_Ranges_library/C++_Ranges_library_140_0.txt
##### [ cppreference.com ](/) [ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Flinks%2Flibs "You are encouraged to log in; however, it is not mandatory \[o\]") ##### Namespaces * [ Page ](/w/cpp/links/libs "View the content page \[c\]") * [ Discussion ](/w/Talk:cpp/links/libs "Discussion abou...
C++_Ranges_library/C++_Ranges_library_53_4.txt
[ ranges:: range_value_t ](http://en.cppreference.com/w/cpp/ranges/iterator_t) < C >> is true : 1) Constructing a non-view object as if [ direct-initializing ](/w/cpp/language/direct_initialization "cpp/language/direct initialization") (but not direct-list-initializing) an object of type ` C ` from the source ra...
C++_Ranges_library/C++_Ranges_library_108_4.txt
* 5 Notes * 6 Example * 7 References * 8 See also --- ### [ [ edit ](/mwiki/index.php?title=cpp/ranges/chunk_by_view&action=edit&section=1 "Edit section: Data members") ] Data members Member object | Definition ---|--- ` _base__ ` (private) | The underlying [ ` view ` ](/w/cpp/ranges...
C++_Ranges_library/C++_Ranges_library_153_35.txt
return x.supported(); })); } [std::printf](http://en.cppreference.com/w/cpp/io/c/fprintf)("%td)\n", [std::distance](http://en.cppreference.com/w/cpp/iterator/distance)([std::begin](http://en.cppreference.com/w/cpp/iterator/begin)(co), [std::end](http://...
C++_Ranges_library/C++_Ranges_library_136_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_59_30.txt
transform_view(R&&, F) -> transform_view<[views::all_t](http://en.cppreference.com/w/cpp/ranges/all_view)<R>, F>; } #### [ [ edit ](/mwiki/index.php?title=Template:cpp/synopsis/ranges&action=edit&section=T-34 "Template:cpp/synopsis/ranges") ] Class template std::ranges::transform_view::iterator ...
C++_Ranges_library/C++_Ranges_library_59_27.txt
ta)(*r_); } };   template<class R> ref_view(R&) -> ref_view<R>; } #### [ [ edit ](/mwiki/index.php?title=Template:cpp/synopsis/ranges&action=edit&section=T-28 "Template:cpp/synopsis/ranges") ] Class template std::ranges::owning_view namespace std::ranges { template<r...
C++_Ranges_library/C++_Ranges_library_139_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_53_7.txt
the call expression, and is an rvalue otherwise. Thus std :: move ( g ) ( r ) can move the bound arguments into the call, where g ( r ) would copy. * The specified template argument is (3) ` C ` or (4) the deduced type from a class template ` C ` that must not satisfy [ ` view ` ](/w/cpp/ranges/v...
C++_Ranges_library/C++_Ranges_library_21_7.txt
:Todo with reason") ##### 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/Spe...
C++_Ranges_library/C++_Ranges_library_77_4.txt
n of this page \[p\]") * [ Permanent link ](/mwiki/index.php?title=cpp/ranges/constant_range&oldid=155671 "Permanent link to this revision of the page") * [ Page information ](/mwiki/index.php?title=cpp/ranges/constant_range&action=info) * In other languages * [ Español ](http://es.cppreference.com/w/cpp/ran...
C++_Ranges_library/C++_Ranges_library_157_1.txt
](/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/ranges") | [ dangling ](/w/cpp/ranges/dangling "cpp/...
C++_Ranges_library/C++_Ranges_library_66_1.txt
el_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/ranges/e...
C++_Ranges_library/C++_Ranges_library_11_13.txt
") | (C++20) | [ P1001R2 ](https://wg21.link/P1001R2) ` __cpp_lib_expected ` | class template std::expected | 202202L | [ ` <expected> ` ](/w/cpp/header/expected "cpp/header/expected") | (C++23) | [ P0323R12 ](https://wg21.link/P0323R12) Monadic functions for std::expected | 202211L | [ ` <expected...
C++_Ranges_library/C++_Ranges_library_11_31.txt
01907L, __cpp_lib_barrier) COMPILER_FEATURE_ENTRY(201907L, __cpp_lib_bind_front) COMPILER_FEATURE_ENTRY(201806L, __cpp_lib_bit_cast) COMPILER_FEATURE_ENTRY(201907L, __cpp_lib_bitops) COMPILER_FEATURE_ENTRY(201902L, __cpp_lib_bounded_array_traits) COMPILER_FEATURE_ENTRY(201907L, _...
C++_Ranges_library/C++_Ranges_library_64_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_73_30.txt
que_object_representations) COMPILER_FEATURE_ENTRY(201603L, __cpp_lib_hypot) COMPILER_FEATURE_ENTRY(201505L, __cpp_lib_incomplete_container_elements) COMPILER_FEATURE_ENTRY(201411L, __cpp_lib_invoke) COMPILER_FEATURE_ENTRY(201703L, __cpp_lib_is_aggregate) COMPILER_FEATURE_ENTRY(2...
C++_Ranges_library/C++_Ranges_library_73_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_16_2.txt
it_view views::lazy_split ](/w/cpp/ranges/lazy_split_view "cpp/ranges/lazy split view") [ split_view views::split ](/w/cpp/ranges/split_view "cpp/ranges/split view") [ views::counted ](/w/cpp/ranges/view_counted "cpp/ranges/view counted") [ common_view views::common ](/w/cpp/ranges/common_view "cpp/ranges/...
C++_Ranges_library/C++_Ranges_library_153_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/C++_Ranges_library_45_5.txt
ges/rbegin "A list of all wiki pages that link here \[j\]") * [ Related changes ](/w/Special:RecentChangesLinked/cpp/ranges/rbegin "Recent changes in pages linked from this page \[k\]") * [ Upload file ](http://upload.cppreference.com/w/Special:Upload "Upload files \[u\]") * [ Special pages ](/w/Special:SpecialPa...
C++_Ranges_library/C++_Ranges_library_158_2.txt
ranges/split_view "cpp/ranges/split view") [ views::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_...
C++_Ranges_library/C++_Ranges_library_0_8.txt
+11) (C++11) (C++11) | tag constants used to specify locking strategy (constant) [ [edit] ](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/thread/dsc_lock_tag&action=edit) ##### Generic locking algorithms [ try_lock ](/w/cpp/thread/try_lock "cpp/thread/try lock") (C++11) | attempts...
C++_Ranges_library/C++_Ranges_library_67_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/C++_Ranges_library_88_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/C++_Ranges_library_140_24.txt
ter/LICENSE) | Autotools, cmake, Visual Studio [ Log4cpp ](http://log4cpp.sourceforge.net/) | A library of C++ classes for flexible logging to files, syslog, IDSA and other destinations. | LGPL | [ log4cxx ](https://logging.apache.org/log4cxx/latest_stable/index.html) | Apache log4cxx is a logging framework...
C++_Ranges_library/C++_Ranges_library_64_8.txt
set> ` ](/w/cpp/header/unordered_set "cpp/header/unordered set") | (C++26) | [ P2363R5 ](https://wg21.link/P2363R5) ` __cpp_lib_assume_aligned ` | [ std::assume_aligned ](/w/cpp/memory/assume_aligned "cpp/memory/assume aligned") | 201811L | [ ` <memory> ` ](/w/cpp/header/memory "cpp/header/memory") | (C++20) ...
C++_Ranges_library/C++_Ranges_library_46_4.txt
charconv ` | 202207L | [ ` <charconv> ` ](/w/cpp/header/charconv "cpp/header/charconv") ` __cpp_lib_constexpr_cmath ` | 202306L | [ ` <cmath> ` ](/w/cpp/header/cmath "cpp/header/cmath") [ ` <cstdlib> ` ](/w/cpp/header/cstdlib "cpp/header/cstdlib") ` __cpp_lib_constexpr_complex ` | 202306L | [ ` <complex> `...
C++_Ranges_library/C++_Ranges_library_109_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_67_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&section=...
C++_Ranges_library/param-pack.html4_21_0.txt
constexpr int sum(std::convertible_to<int> auto ...i) { return (0 + ... + i); } Folds are defined in terms of the grammar rule for a cast-expression , which is a C++ expression whose outer operators bind at least a tightly (i.e., have precedence at least as high a...
C++_Ranges_library/C++_Ranges_library_81_1.txt
erator_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_...
C++_Ranges_library/C++_Ranges_library_150_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_11_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_136_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/C++_Ranges_library_2_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/C++_Ranges_library_140_12.txt
Frozen ](https://github.com/serge-sans-paille) | constexpr Perfect-hashing-based frozen sets and maps | [ Apache-2.0 ](https://www.apache.org/licenses/LICENSE-2.0) | [ Immer ](https://github.com/arximboldi/immer) | A library of persistent and immutable data structures | Boost | cmake [ plf::colony ](http...
C++_Ranges_library/C++_Ranges_library_24_3.txt
named req/RangeAdaptorObject") (and also [ RangeAdaptorClosureObject ](/w/cpp/named_req/RangeAdaptorClosureObject "cpp/named req/RangeAdaptorClosureObject") ). The expression views :: values ( e ) is [ expression-equivalent ](/w/cpp/language/expressions#Expression- equivalence "cpp/language/expressions") to valu...
C++_Ranges_library/what-will-be-the-output-of-the-following-c-code--5ab8a41bc56b6664bc9bacdd8_33_0.txt
Trusted by 5.5 Crore+ Students ## More While Loop Questions
C++_Ranges_library/C++_Ranges_library_11_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_56_36.txt
(since C++11) [ ` rintf() ` ](/w/cpp/numeric/math/rint "cpp/numeric/math/rint") (since C++11) [ ` rintl() ` ](/w/cpp/numeric/math/rint "cpp/numeric/math/rint") (since C++11) [ ` ronna ` ](/w/cpp/numeric/ratio/ratio "cpp/numeric/ratio/ratio") (since C++26) [ ` ronto ` ](/w/cpp/numeric/ratio/ratio "cpp/numeric/r...
C++_Ranges_library/C++_Ranges_library_153_19.txt
[ ` <mdspan> ` ](/w/cpp/header/mdspan "cpp/header/mdspan") | (C++23) | [ P0009R18 ](https://wg21.link/P0009R18) [ P2599R2 ](https://wg21.link/P2599R2) [ P2604R0 ](https://wg21.link/P2604R0) [ P2613R1 ](https://wg21.link/P2613R1) ` __cpp_lib_memory_resource ` | [ std::pmr::memory_resource ](/w/cpp/memory/me...
C++_Ranges_library/C++_Ranges_library_146_5.txt
(public member function of ` std::optional<T> ` ) [ [edit] ](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/utility/optional/dsc_constructor&action=edit) ---|--- [ (destructor) ](/w/cpp/utility/optional/%7Eoptional "cpp/utility/optional/~optional") | destroys the contained value, if there is on...
C++_Ranges_library/C++_Ranges_library_56_41.txt
` ](/w/cpp/memory/to_address "cpp/memory/to address") (since C++20) [ ` to_array<>() ` ](/w/cpp/container/array/to_array "cpp/container/array/to array") (since C++20) [ ` to_chars() ` ](/w/cpp/utility/to_chars "cpp/utility/to chars") (since C++17) [ ` to_chars_result ` ](/w/cpp/utility/to_chars "cpp/utility/to c...
C++_Ranges_library/C++_Ranges_library_42_3.txt
e argument, it also supports partial application: let * a be such a range adaptor object, and * args... be arguments (generally suitable for trailing arguments), expression a ( args... ) has following properties: * it is valid if and only if for every argument e in args... such that ` E ` is decl...
C++_Ranges_library/C++_Ranges_library_29_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_130_9.txt
s://wg21.link/P2714R1) ` __cpp_lib_bit_cast ` | [ ` std::bit_cast ` ](/w/cpp/numeric/bit_cast "cpp/numeric/bit cast") | 201806L | [ ` <bit> ` ](/w/cpp/header/bit "cpp/header/bit") | (C++20) | [ P0476R2 ](https://wg21.link/P0476R2) ` __cpp_lib_bitops ` | [ Bit operations ](/w/cpp/numeric#Bit_manipulation_.28...
C++_Ranges_library/param-pack.html4_22_0.txt
There are four types of fold in C++. In these examples, let ` pat ` be a cast-expression containing one more more unexpanded parameter packs (i.e., a pattern). Let ` e ` be a normal cast-expression without any unexpanded parameter packs. Let p 1 , …,  p n be the instances of ` pat ` corresponding to each el...
C++_Ranges_library/C++_Ranges_library_43_12.txt
&action=edit) [ <signal.h> ](/w/cpp/header/csignal "cpp/header/csignal") | Behaves as if each name from [ ` <csignal> ` ](/w/cpp/header/csignal "cpp/header/csignal") is placed in global namespace [ [edit] ](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/header/dsc_signal.h&action=edit) [ <stdarg.h...
C++_Ranges_library/C++_Ranges_library_86_2.txt
view "cpp/ranges/join with view") (C++23) (C++23) [ lazy_split_view views::lazy_split ](/w/cpp/ranges/lazy_split_view "cpp/ranges/lazy split view") [ split_view views::split ](/w/cpp/ranges/split_view "cpp/ranges/split view") [ views::counted ](/w/cpp/ranges/view_counted "cpp/ranges/view counted") [ commo...
C++_Ranges_library/C++_Ranges_library_59_21.txt
} constexpr auto cend() const requires range<const D> { return [ranges::cend](http://en.cppreference.com/w/cpp/ranges-ranges-placeholder/cend)(derived()); }   constexpr explicit operator bool() requires requires { [ranges::empty](http://en.cppreference.com/w/cpp/ranges/e...