id
stringlengths
16
145
text
stringlengths
1
179k
title
stringclasses
1 value
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_22_0.txt
How do I get the computer to check if what is entered is an integer or not? And if not, ask the user to type an integer in. For example: if someone inputs "a" instead of 2, then it will tell them to reenter a number. Thanks
C++_Ranges_library/C++_Ranges_library_139_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_7_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_126_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_141_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/C++_Ranges_library_128_8.txt
range adaptor object) [ [edit] ](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/ranges/dsc_lazy_split_view&action=edit) [ views::counted ](/w/cpp/ranges/view_counted "cpp/ranges/view counted") (C++20) | creates a subrange from an iterator and a count (customization point object) [ [edit] ](htt...
C++_Ranges_library/C++_Ranges_library_122_4.txt
[ [edit] ](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/dsc_partial_sum&action=edit) [ inclusive_scan ](/w/cpp/algorithm/inclusive_scan "cpp/algorithm/inclusive scan") (C++17) | similar to [ std::partial_sum ](/w/cpp/algorithm/partial_sum "cpp/algorithm/partial sum") , includes the i ...
C++_Ranges_library/C++_Ranges_library_57_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_54_0.txt
##### [ cppreference.com ](/) [ Create account ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Frange%29&type=signup) * [ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Frange%29 "You are encouraged to log in; however, it is not mandatory \[o\]") ##### Namespaces * ...
C++_Ranges_library/C++_Ranges_library_29_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/param-pack.html4_71_0.txt
When a new temporary ` Obj ` has been constructed as a function call argument, the inferred type of the argument will be the rvalue reference ` Obj&& ` . When an existing ` obj ` is being passed in, the type will be the lvalue reference ` Obj& ` (or possibly ` const Obj& ` ). The trick is to define a function ` local_c...
C++_Ranges_library/C++_Ranges_library_71_3.txt
functions [ zip_transform_view:: _iterator_ :: _iterator_ ](/w/cpp/ranges/zip_transform_view/iterator/iterator "cpp/ranges/zip transform view/iterator/iterator") [ zip_transform_view:: _iterator_ ::operator* ](/w/cpp/ranges/zip_transform_view/iterator/operator* "cpp/ranges/zip transform view/iterator/operator*") ...
C++_Ranges_library/what-will-be-the-output-of-the-following-c-code--5ab8a41bc56b6664bc9bacdd8_68_0.txt
Follow us on *
C++_Ranges_library/C++_Ranges_library_55_0.txt
##### [ cppreference.com ](/) [ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Fowning+view "You are encouraged to log in; however, it is not mandatory \[o\]") ##### Namespaces * [ Page ](/w/cpp/ranges/owning_view "View the content page \[c\]") * [ Discussion ](/mwiki/index.php?title=...
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_66_0.txt
* so change to characters instead of integers at the variable assignments, then use the rest of the code as is? (and upvoted because the answer is still very usable after this slight tweak) – user2366842
C++_Ranges_library/C++_Ranges_library_34_4.txt
[ LegacyBidirectionalIterator ](/w/cpp/named_req/BidirectionalIterator "cpp/named req/BidirectionalIterator") (also satisfies [ LegacyForwardIterator ](/w/cpp/named_req/ForwardIterator "cpp/named req/ForwardIterator") ) | | Required | Required | Required | Required | | [ LegacyRandomAccessIterator...
C++_Ranges_library/C++_Ranges_library_114_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_157_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_2_10.txt
duct_view "cpp/ranges/cartesian product view") (C++23) | a [ ` view ` ](/w/cpp/ranges/view "cpp/ranges/view") consisting of tuples of results calculated by the n-ary cartesian product of the adapted views (class template) (customization point object) [ [edit] ](https://en.cppreference.com/mwiki/index.php?title=T...
C++_Ranges_library/C++_Ranges_library_59_10.txt
iew "cpp/ranges/view") consisting of the sequence obtained from flattening a view of ranges, with the delimiter in between elements (class template) (range adaptor object) [ [edit] ](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/ranges/dsc_join_with_view&action=edit) [ ranges::stride_view views...
C++_Ranges_library/C++_Ranges_library_37_7.txt
ppreference:General_disclaimer "Cppreference:General disclaimer") * [ ![Powered by MediaWiki](/mwiki/skins/common/images/poweredby_mediawiki_88x31.png) ](//www.mediawiki.org/) [ ![Powered by GeSHi](//upload.cppreference.com/mwiki/images/2/2b/powered_by_geshi_88x31.png) ](http://qbnz.com/highlighter/) [ ![Hosted by T...
C++_Ranges_library/accumulate4_1_0.txt
* Log in ##### Namespaces
C++_Ranges_library/C++_Ranges_library_11_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_157_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_54_0.txt
You can also use lambdas in requires clauses. Suppose you want to define a user-defined literal ` _hex ` to create strings from a series of hexadecimal digits specifying bytes. For example, the constant ` 0x48656c6c6f21_hex ` should be equivalent to ` std::string{"Hello!"} ` . The C++ standard says such an operator m...
C++_Ranges_library/C++_Ranges_library_141_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_77_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/checking-cin-input-stream-produces-an-integer9_149_0.txt
##### Stack Exchange Network * Technology * Culture & recreation * Life & arts * Science * Professional * Business * API * Data
C++_Ranges_library/C++_Ranges_library_140_3.txt
on.php) , BSD, GPL | [ LAME ](https://lame.sourceforge.io/using.php) | LAME is a high quality MPEG Audio Layer III (MP3) encoder. | LGPL | [ libsndfile ](http://www.mega-nerd.com/libsndfile) | A C library with C++ wrapper for reading and writing files containing sampled sound (e.g. WAV, AIFF) through one st...
C++_Ranges_library/C++_Ranges_library_32_23.txt
pr reverse_iterator& operator-=(difference_type n); constexpr /* unspecified */ operator[](difference_type n) const;   friend constexpr iter_rvalue_reference_t<Iter> iter_move(const reverse_iterator& i) noexcept(/* see description */); template<indirectly_swappable<Iter> Iter2> ...
C++_Ranges_library/accumulate4_2_0.txt
* Page * Discussion ##### Variants
C++_Ranges_library/C++_Ranges_library_152_7.txt
:General disclaimer") * [ ![Powered by MediaWiki](/mwiki/skins/common/images/poweredby_mediawiki_88x31.png) ](//www.mediawiki.org/) [ ![Powered by GeSHi](//upload.cppreference.com/mwiki/images/2/2b/powered_by_geshi_88x31.png) ](http://qbnz.com/highlighter/) [ ![Hosted by Tiger Technologies](//upload.cppreference.com...
C++_Ranges_library/C++_Ranges_library_101_0.txt
##### [ cppreference.com ](/) [ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Fadjacent+transform+view "You are encouraged to log in; however, it is not mandatory \[o\]") ##### Namespaces * [ Page ](/w/cpp/ranges/adjacent_transform_view "View the content page \[c\]") * [ Discussion ]...
C++_Ranges_library/C++_Ranges_library_31_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_11_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_6_0.txt
int i; for ( i=0; i<5; i++ )
C++_Ranges_library/C++_Ranges_library_118_4.txt
wiki.org/) [ ![Powered by GeSHi](//upload.cppreference.com/mwiki/images/2/2b/powered_by_geshi_88x31.png) ](http://qbnz.com/highlighter/) [ ![Hosted by Tiger Technologies](//upload.cppreference.com/mwiki/images/9/94/powered_by_tigertech_88x31.png) ](http://www.tigertech.net/referral/cppreference.com)
C++_Ranges_library/C++_Ranges_library_51_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/accumulate4_4_0.txt
##### Actions # std:: accumulate
C++_Ranges_library/C++_Ranges_library_70_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_153_11.txt
pp/header/cmath "cpp/header/cmath") [ ` <cstdlib> ` ](/w/cpp/header/cstdlib "cpp/header/cstdlib") | (C++26) | [ P1383R2 ](https://wg21.link/P1383R2) ` __cpp_lib_constexpr_complex ` | Constexpr for [ std::complex ](/w/cpp/numeric/complex "cpp/numeric/complex") | 201711L | [ ` <complex> ` ](/w/cpp/header/comple...
C++_Ranges_library/C++_Ranges_library_32_10.txt
mplate) [ [edit] ](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/iterator/dsc_inserter&action=edit) ##### Non-member operators [ operator== operator!= operator< operator<= operator> operator>= operator<=> ](/w/cpp/iterator/move_iterator/operator_cmp "cpp/iterator/move iterator/operator ...
C++_Ranges_library/C++_Ranges_library_150_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_60_4.txt
mber variable (macro variable) [ [edit] ](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/error/dsc_errno&action=edit) [ E2BIG, EACCES, ..., EXDEV ](/w/cpp/error/errno_macros "cpp/error/errno macros") | macros for standard POSIX-compatible error conditions (macro constant) [ [edit] ](https://...
C++_Ranges_library/C++_Ranges_library_27_6.txt
#include <format> #include <ranges>   int main() { const auto nums = {1, 2, 3, 4, 5, 6, 7, 8, 9};   for (int i : std::ranges::drop_view{nums, 2}) [std::cout](http://en.cppreference.com/w/cpp/io/cout) << i << ' '; [std::cout](http://en.cppreference.com/w/cpp/io/co...
C++_Ranges_library/param-pack.html4_45_0.txt
Often you want to do the same operation to every element in a parameter pack. While you can accomplish this by recursing over the parameter pack, it can be simpler to use a fold over the comma operator , which just sequences one expression after the other. To avoid any strange behavior in cases where the program over...
C++_Ranges_library/C++_Ranges_library_95_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_128_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_91_6.txt
irst element satisfying specific criteria (niebloid) [ [edit] ](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/ranges/dsc_find&action=edit) [ ranges::find_last ranges::find_last_if ranges::find_last_if_not ](/w/cpp/algorithm/ranges/find_last "cpp/algorithm/ranges/find last") (C++23) ...
C++_Ranges_library/C++_Ranges_library_130_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_91_7.txt
(function template) [ [edit] ](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/dsc_search&action=edit) [ ranges::search ](/w/cpp/algorithm/ranges/search "cpp/algorithm/ranges/search") (C++20) | searches for a range of elements (niebloid) [ [edit] ](https://en.cppreference.com/mwiki/in...
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_131_0.txt
See more linked questions #### Related
C++_Ranges_library/C++_Ranges_library_67_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_136_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/C++_Ranges_library_150_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/checking-cin-input-stream-produces-an-integer9_147_0.txt
##### Products * Teams * Advertising * Collectives * Talent
C++_Ranges_library/C++_Ranges_library_148_1.txt
_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 ](/w/cpp/rang...
C++_Ranges_library/C++_Ranges_library_55_2.txt
ew "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 views::revers...
C++_Ranges_library/C++_Ranges_library_40_4.txt
r++ chunk_view:: _iterator_ ::operator++ (int) chunk_view:: _iterator_ ::operator-- chunk_view:: _iterator_ ::operator-- (int) chunk_view:: _iterator_ ::operator+= chunk_view:: _iterator_ ::operator-= ](/w/cpp/ranges/chunk_view/iterator/operator_arith "cpp/ranges/chunk view/iterator/operator arith") [ ope...
C++_Ranges_library/C++_Ranges_library_138_0.txt
##### [ cppreference.com ](/) [ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Fall+view "You are encouraged to log in; however, it is not mandatory \[o\]") ##### Namespaces * [ Page ](/w/cpp/ranges/all_view "View the content page \[c\]") * [ Discussion ](/mwiki/index.php?title=Talk:c...
C++_Ranges_library/C++_Ranges_library_93_5.txt
(public member function) [ [edit] ](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/ranges/adaptor/dsc_begin&action=edit) [ end ](/w/cpp/ranges/zip_view/end "cpp/ranges/zip view/end") (C++23) | returns an iterator or a sentinel to the end (public member function) [ [edit] ](https://en.cpprefe...
C++_Ranges_library/C++_Ranges_library_110_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_11_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/C++_Ranges_library_126_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_46_8.txt
/header/ranges "cpp/header/ranges") ` __cpp_lib_ranges_chunk ` | 202202L | [ ` <ranges> ` ](/w/cpp/header/ranges "cpp/header/ranges") ` __cpp_lib_ranges_chunk_by ` | 202202L | [ ` <ranges> ` ](/w/cpp/header/ranges "cpp/header/ranges") ` __cpp_lib_ranges_contains ` | 202207L | [ ` <algorithm> ` ](/w/cpp/h...
C++_Ranges_library/C++_Ranges_library_59_55.txt
ke_result_t<F&, __REPEAT(range_reference_t<V>, N)...>> class adjacent_transform_view : public view_interface<adjacent_transform_view<V, F, N>> { __movable_box<F> fun_; // exposition only adjacent_view<V, N> inner_; // exposition only   using...
C++_Ranges_library/C++_Ranges_library_43_5.txt
s://en.cppreference.com/mwiki/index.php?title=Template:cpp/header/dsc_memory_resource&action=edit) [ <new> ](/w/cpp/header/new "cpp/header/new") | [ Low-level memory management utilities ](/w/cpp/memory/new "cpp/memory/new") [ [edit] ](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/header/dsc_new&act...
C++_Ranges_library/C++_Ranges_library_57_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/C++_Ranges_library_153_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_59_32.txt
egin](http://en.cppreference.com/w/cpp/ranges-ranges-placeholder/begin)(base_), sz); } } else { return counted_iterator([ranges::begin](http://en.cppreference.com/w/cpp/ranges-ranges-placeholder/begin)(base_), count_); } }   constexpr auto end() requires (...
C++_Ranges_library/C++_Ranges_library_73_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_45_1.txt
(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/elements of") (C++23) --- [ Dangling iterator handling ](/...
C++_Ranges_library/C++_Ranges_library_41_4.txt
able ](http://en.cppreference.com/w/cpp/concepts/invocable) < const __size_fn & , Args... > . Otherwise, no function call operator of ` ___size_fn_ ` participates in overload resolution. ### [ [ edit ](/mwiki/index.php?title=cpp/ranges/size&action=edit&section=1 "Edit section: Notes") ] Notes Whenever rang...
C++_Ranges_library/C++_Ranges_library_64_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_130_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_57_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_114_9.txt
](/w/cpp/ranges/adjacent_view "cpp/ranges/adjacent view") (C++23) | a [ ` view ` ](/w/cpp/ranges/view "cpp/ranges/view") consisting of tuples of references to adjacent elements of the adapted view (class template) (range adaptor object) [ [edit] ](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/r...
C++_Ranges_library/C++_Ranges_library_154_9.txt
e.com/w/cpp/ranges-functional-placeholder/less), class Proj = [std::identity](http://en.cppreference.com/w/cpp/utility/functional/identity)> requires [std::sortable](http://en.cppreference.com/w/cpp/iterator/sortable)<[ranges::iterator_t](http://en.cppreference.com/w/cpp/ranges-ranges-placehold...
C++_Ranges_library/C++_Ranges_library_10_7.txt
et/%7Eunordered_multiset "cpp/container/unordered multiset/~unordered multiset") [ | ` ~unordered_map ` --- ](/w/cpp/container/unordered_map/%7Eunordered_map "cpp/container/unordered map/~unordered map") [ | ` ~unordered_multimap ` --- ](/w/cpp/container/unordered_multimap/%7Eunordered_multimap "cpp/container/uno...
C++_Ranges_library/C++_Ranges_library_67_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/accumulate4_23_0.txt
* Deutsch * Español * Français * Italiano * 日本語 * Português * Русский * 中文 * This page was last modified on 15 April 2024, at 00:30. * This page has been accessed 2,013,055 times.
C++_Ranges_library/C++_Ranges_library_141_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_95_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_140_1.txt
See also * 2.38.2 External links --- # [ [ edit ](/mwiki/index.php?title=cpp/links/libs&action=edit&section=1 "Edit section: Package managers") ] Package managers Package manager | Description ---|--- [ build2 ](https://build2.org/) | An open-source (MIT), cross-platform build toolchain th...
C++_Ranges_library/C++_Ranges_library_11_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_101_1.txt
_size_t range_difference_t range_value_t range_reference_t ](/w/cpp/ranges/iterator_t "cpp/ranges/iterator t") --- | [ 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_referenc...
C++_Ranges_library/C++_Ranges_library_64_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_10_18.txt
er/unordered set/end2") [ | ` end(size_type) ` --- ` cend(size_type) ` ](/w/cpp/container/unordered_multiset/end2 "cpp/container/unordered multiset/end2") [ | ` end(size_type) ` --- ` cend(size_type) ` ](/w/cpp/container/unordered_map/end2 "cpp/container/unordered map/end2") [ | ` end(size_type) ` --- ` ...
C++_Ranges_library/C++_Ranges_library_10_19.txt
ctor "cpp/container/unordered multimap/max load factor") | | | | | | | | ` max_load_factor ` --- | ` rehash ` --- | | | | | | | | | | [ | ` rehash ` --- ](/w/cpp/container/unordered_set/rehash "cpp/container/unordered set/rehash") [ | ` rehash ` --- ](/w/cpp/container/unordered_mu...
C++_Ranges_library/C++_Ranges_library_112_6.txt
t) [ exchange ](/w/cpp/utility/exchange "cpp/utility/exchange") (C++14) | replaces the argument with a new value and returns its previous value (function template) [ [edit] ](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/utility/dsc_exchange&action=edit) Defined in header ` [ <concepts> ](/w...
C++_Ranges_library/C++_Ranges_library_70_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_140_34.txt
| [ A curated list of (awesome) header-only C++ libraries ](https://github.com/p-ranav/awesome-hpp) — at GitHub 3\. | [ A curated list of (awesome) C++ and C libraries ](https://github.com/fffaraz/awesome-cpp) — at GitHub 4\. | [ Boost C++ libraries ](https://www.boost.org/doc/libs/?view=condensed) — at Boos...
C++_Ranges_library/C++_Ranges_library_80_4.txt
ements by repeatedly incrementing an initial value. Can be either bounded or unbounded (infinite). 2) views :: iota ( e ) and views :: iota ( e, f ) are [ expression-equivalent ](/w/cpp/language/expressions#Expression-equivalence "cpp/language/expressions") to iota_view ( e ) and iota_view ( e, f...
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_20_0.txt
Modified 1 month ago Viewed 194k times
C++_Ranges_library/param-pack.html4_6_0.txt
The ` print_strings ` function takes an arbitrary number of arguments, all of which are captured by the parameter pack ` ...s ` in line 2. In line 4, this parameter pack is expanded as ` s... ` to specify the values from which to construct an ` initializer_list ` . We then iterate over the ` initializer_list ` to print...
C++_Ranges_library/C++_Ranges_library_14_5.txt
ispunct&action=edit) [ isxdigit (std::locale) ](/w/cpp/locale/isxdigit "cpp/locale/isxdigit") | checks if a character is classified as a hexadecimal digit by a locale (function template) [ [edit] ](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/locale/dsc_isxdigit&action=edit) [ isalnum (std...
C++_Ranges_library/C++_Ranges_library_29_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_72_4.txt
as a known bound print('a', array); } { struct Scanty : private [std::vector](http://en.cppreference.com/w/cpp/container/vector)<int> { using [std::vector](http://en.cppreference.com/w/cpp/container/vector)<int>::begin; using [std::vect...
C++_Ranges_library/C++_Ranges_library_72_2.txt
") [ 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 views::reverse ](/w/cpp/ranges/reverse_vie...
C++_Ranges_library/C++_Ranges_library_24_4.txt
ges/dsc_elements_view&action=edit) [ slice ](/w/cpp/numeric/valarray/slice "cpp/numeric/valarray/slice") | BLAS-like slice of a valarray: starting index, length, stride (class) [ [edit] ](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/numeric/valarray/dsc_slice&action=edit) Retrieved from "...