id
stringlengths
16
145
text
stringlengths
1
179k
title
stringclasses
1 value
C++_Ranges_library/C++_Ranges_library_112_4.txt
t] ](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/utility/dsc_breakpoint_if_debugging&action=edit) [ is_debugger_present ](/w/cpp/utility/is_debugger_present "cpp/utility/is debugger present") (C++26) | checks whether a program is running under the control of a debugger (function) [ [edit] ](...
C++_Ranges_library/param-pack.html4_50_0.txt
While parameter packs can be expanded in many contexts, you sometimes need to deconstruct a template type to extract the parameter pack. This can be awkward because there are fewer contexts in which to capture a pack. Worst-case scenario, this can be done by defining a helper type or function, but this leads to a lot o...
C++_Ranges_library/C++_Ranges_library_26_5.txt
it satisfies [ ` sized_range ` ](/w/cpp/ranges/sized_range "cpp/ranges/sized range") or [ ` forward_range ` ](/w/cpp/ranges/forward_range "cpp/ranges/forward range") . (public member function of ` std::ranges::view_interface<D> ` ) [ [edit] ](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/ranges/vi...
C++_Ranges_library/what-will-be-the-output-of-the-following-c-code--5ab8a41bc56b6664bc9bacdd8_31_0.txt
Daily Live MasterClasses Practice Question Bank
C++_Ranges_library/C++_Ranges_library_24_0.txt
##### [ cppreference.com ](/) [ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Fvalues+view "You are encouraged to log in; however, it is not mandatory \[o\]") ##### Namespaces * [ Page ](/w/cpp/ranges/values_view "View the content page \[c\]") * [ Discussion ](/mwiki/index.php?title=...
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_137_0.txt
6 C++ Checking for an integer.
C++_Ranges_library/C++_Ranges_library_141_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_150_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/C++_Ranges_library_141_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_82_12.txt
earch") (C++20) | determines if an element exists in a partially-ordered range (niebloid) [ [edit] ](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/ranges/dsc_binary_search&action=edit) [ ranges::equal_range ](/w/cpp/algorithm/ranges/equal_range "cpp/algorithm/ranges/equal range") (C+...
C++_Ranges_library/C++_Ranges_library_140_7.txt
cmake [ Highway ](https://github.com/google/highway) | Provides performance-portable, length-agnostic SIMD/vector intrinsics. Supports: SSE3, SSE4, AVX*, NEON, SVE*, WASM SIMD, RISC-V, POWER. ( [ Doc ](https://github.com/google/highway/tree/master/g3doc) ) | [ Apache-2.0 ](https://github.com/google/highway/blob/m...
C++_Ranges_library/C++_Ranges_library_153_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_150_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_123_2.txt
s/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/common view") | [ reverse_view...
C++_Ranges_library/C++_Ranges_library_7_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_147_0.txt
##### [ cppreference.com ](/) [ Create account ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Finput+range%29&type=signup) * [ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Finput+range%29 "You are encouraged to log in; however, it is not mandatory \[o\]") ##### Name...
C++_Ranges_library/param-pack.html4_74_0.txt
* An expression that is an invocation of a function returning a non-reference, non- ` void ` type is of a category known as a prvalue . Since C++17, you can think of a prvalue as a set of instructions for how to create an object that has not yet been created. Hence, invoking ` use_object ` below creates only one ` ...
C++_Ranges_library/C++_Ranges_library_95_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/accumulate4_10_0.txt
2) Initializes the accumulator acc (of type ` T ` ) with the initial value init and then modifies it with acc = op ( acc, * i ) (until C++20) acc = op ( std :: move ( acc ) , * i ) (since C++20) for every iterator i in the range ` [ ` first ` , ` last ` ) ` in order. If any of the follo...
C++_Ranges_library/C++_Ranges_library_134_0.txt
##### [ cppreference.com ](/) [ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Fend "You are encouraged to log in; however, it is not mandatory \[o\]") ##### Namespaces * [ Page ](/w/cpp/ranges/end "View the content page \[c\]") * [ Discussion ](/mwiki/index.php?title=Talk:cpp/ranges/...
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_1_0.txt
1. About 2. Products 3. For Teams 1. Stack Overflow Public questions & answers 2. Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers 3. Talent Build your employer brand 4. Advertising Reach developers & technologists worldwide 5. Labs The future...
C++_Ranges_library/C++_Ranges_library_84_0.txt
##### [ cppreference.com ](/) [ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Frepeat+view "You are encouraged to log in; however, it is not mandatory \[o\]") ##### Namespaces * [ Page ](/w/cpp/ranges/repeat_view "View the content page \[c\]") * [ Discussion ](/mwiki/index.php?title=...
C++_Ranges_library/C++_Ranges_library_136_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_130_22.txt
https://wg21.link/P1206R7) ` __cpp_lib_ranges_zip ` | std::ranges::zip_view , std::ranges::zip_transform_view , std::ranges::adjacent_view , std::ranges::adjacent_transform_view | 202110L | [ ` <ranges> ` ](/w/cpp/header/ranges "cpp/header/ranges") [ ` <tuple> ` ](/w/cpp/header/tuple "cpp/header/tuple") [ ...
C++_Ranges_library/C++_Ranges_library_126_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_126_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_85_5.txt
tion) [ [edit] ](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/ranges/adaptor/dsc_begin&action=edit) [ end ](/w/cpp/ranges/elements_view/end "cpp/ranges/elements view/end") (C++20) | returns an iterator or a sentinel to the end (public member function) [ [edit] ](https://en.cppreference.com/m...
C++_Ranges_library/C++_Ranges_library_3_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_10_14.txt
place after") [ | ` emplace ` --- ](/w/cpp/container/list/emplace "cpp/container/list/emplace") [ | ` emplace ` --- ](/w/cpp/container/set/emplace "cpp/container/set/emplace") [ | ` emplace ` --- ](/w/cpp/container/multiset/emplace "cpp/container/multiset/emplace") [ | ` emplace ` --- ](/w/cpp/container/map...
C++_Ranges_library/C++_Ranges_library_67_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/param-pack.html4_4_0.txt
Between C++11 and C++20, the language gained several improvements to variadic templates. Improvements to other features, such as concepts and lambdas, have also created new options for manipulating parameter packs, thereby enabling new variadic template idioms. This post lays out a grab-bag of techniques for using para...
C++_Ranges_library/C++_Ranges_library_126_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_96_9.txt
is_nothrow_invocable is_nothrow_invocable_r ](/w/cpp/types/is_invocable "cpp/types/is invocable") (C++17) | checks if a type can be invoked (as if by [ std::invoke ](/w/cpp/utility/functional/invoke "cpp/utility/functional/invoke") ) with the given argument types (class template) [ [edit] ](https://en.cpprefe...
C++_Ranges_library/C++_Ranges_library_150_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_16_4.txt
anges/take_while_view/pred "cpp/ranges/take while view/pred") (C++20) | returns a reference to the stored predicate (public member function) [ [edit] ](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/ranges/adaptor/dsc_pred&action=edit) [ begin ](/w/cpp/ranges/take_while_view/begin "cpp/ranges/t...
C++_Ranges_library/C++_Ranges_library_156_0.txt
##### [ cppreference.com ](/) [ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Flanguage "You are encouraged to log in; however, it is not mandatory \[o\]") ##### Namespaces * [ Page ](/w/cpp/language "View the content page \[c\]") * [ Discussion ](/w/Talk:cpp/language "Discussion about the co...
C++_Ranges_library/C++_Ranges_library_59_39.txt
attern>::sentinel { using Parent = __maybe_const<Const, join_with_view>; // exposition only using Base = __maybe_const<Const, V>; // exposition only sentinel_t<Base> end_ = sentinel_t<Base>(); // exposition only   constexpr explicit sentinel(Parent& p...
C++_Ranges_library/C++_Ranges_library_18_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_56_42.txt
w/cpp/string/basic_string_view "cpp/string/basic string view") (since C++17) [ ` u8streampos ` ](/w/cpp/io/fpos "cpp/io/fpos") (since C++20) [ ` u8string ` ](/w/cpp/string/basic_string "cpp/string/basic string") (since C++20) [ ` u8string_view ` ](/w/cpp/string/basic_string_view "cpp/string/basic string view") (s...
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_70_0.txt
– brunocodutra Sep 10, 2013 at 21:18
C++_Ranges_library/C++_Ranges_library_80_5.txt
iew_interface "cpp/ranges/view interface") [ cbegin ](/w/cpp/ranges/view_interface/cbegin "cpp/ranges/view interface/cbegin") (C++23) | returns a constant iterator to the beginning of the range. (public member function of ` std::ranges::view_interface<D> ` ) [ [edit] ](https://en.cppreference.com/mwiki/inde...
C++_Ranges_library/C++_Ranges_library_34_2.txt
(/w/cpp/iterator/inserter "cpp/iterator/inserter") [ insert_iterator ](/w/cpp/iterator/insert_iterator "cpp/iterator/insert iterator") [ front_inserter ](/w/cpp/iterator/front_inserter "cpp/iterator/front inserter") [ back_inserter ](/w/cpp/iterator/back_inserter "cpp/iterator/back inserter") [ move_sentinel...
C++_Ranges_library/C++_Ranges_library_130_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_95_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_43_11.txt
O C should not use any of the C headers. With the exception of [ ` complex.h ` ](/w/cpp/header/ccomplex "cpp/header/ccomplex") , each ` _xxx_ .h ` header included in the C++ standard library places in the global namespace each name that the corresponding ` c _xxx_ ` header would have placed in the std namespace. Th...
C++_Ranges_library/C++_Ranges_library_155_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_91_23.txt
n=edit&section=29 "Edit section: C library") ] C library Defined in header ` [ <cstdlib> ](/w/cpp/header/cstdlib "cpp/header/cstdlib") ` --- [ qsort ](/w/cpp/algorithm/qsort "cpp/algorithm/qsort") | sorts a range of elements with unspecified type (function) [ [edit] ](https://en.cppreference.com/mwiki/index...
C++_Ranges_library/C++_Ranges_library_99_8.txt
w") construction from [ ` nullptr ` ](/w/cpp/language/nullptr "cpp/language/nullptr") | [ P2166R1 ](https://wg21.link/P2166R1) | 12 | 13 | 19.30* | 13.1.6* | | | [ ` std::invoke_r() ` ](/w/cpp/utility/functional/invoke "cpp/utility/functional/invoke") | [ P2136R3 ](https://wg21.link/P2136R3) | 12 | 17...
C++_Ranges_library/param-pack.html4_8_0.txt
void dummy(auto&&...) {} template<std::same_as<char> ...C> void expand(C...c) { std::tuple<C...> tpl(c...); const char msg[] = { C(std::toupper(c))..., '\0' }; dummy(msg, c...); } In line 3, the function ` expand ` captures a template parameter pack ` C ` c...
C++_Ranges_library/C++_Ranges_library_115_5.txt
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 Tiger Technologies](//upload.cppr...
C++_Ranges_library/C++_Ranges_library_9_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_134_3.txt
) < [ std:: remove_cv_t ](http://en.cppreference.com/w/cpp/types/remove_cv) < T >> is true , then a call to ` ranges::end ` is [ expression-equivalent ](/w/cpp/language/expressions#Expression-equivalence "cpp/language/expressions") to: 1. t \+ [ std:: extent_v ](http://en.cppreference.com/w/cpp/types/extent) ...
C++_Ranges_library/C++_Ranges_library_91_17.txt
ake heap") (C++20) | creates a max heap out of a range of elements (niebloid) [ [edit] ](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/ranges/dsc_make_heap&action=edit) [ sort_heap ](/w/cpp/algorithm/sort_heap "cpp/algorithm/sort heap") | turns a max heap into a range of elements so...
C++_Ranges_library/C++_Ranges_library_70_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_99_21.txt
tive | [ P1164R1 ](https://wg21.link/P1164R1) | 8.3 | 12 | 19.20* | 13.0.0* | | | [ ` std::ssize() ` ](/w/cpp/iterator/size "cpp/iterator/size") and unsigned extent for [ ` std::span ` ](/w/cpp/container/span "cpp/container/span") | [ P1227R2 ](https://wg21.link/P1227R2) | 10 | 9 | 19.25* | 11.0....
C++_Ranges_library/C++_Ranges_library_58_2.txt
ges/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") [ common_view views...
C++_Ranges_library/C++_Ranges_library_64_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/param-pack.html4_78_0.txt
By the way, if this all seems too complex, there is sometimes an alternative to variadic functions for homogenous argument lists—you can write functions to take an ` initializer_list ` : inline void almost_good3(std::initializer_list<Obj> args) { for (const Obj &o : args) o.use();...
C++_Ranges_library/C++_Ranges_library_29_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_91_13.txt
algorithm/ranges/partition copy") (C++20) | copies a range dividing the elements into two groups (niebloid) [ [edit] ](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/ranges/dsc_partition_copy&action=edit) [ stable_partition ](/w/cpp/algorithm/stable_partition "cpp/algorithm/stable par...
C++_Ranges_library/C++_Ranges_library_56_0.txt
##### [ cppreference.com ](/) [ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Fsymbol+index "You are encouraged to log in; however, it is not mandatory \[o\]") ##### Namespaces * [ Page ](/w/cpp/symbol_index "View the content page \[c\]") * [ Discussion ](/w/Talk:cpp/symbol_index "Discussion ...
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_77_0.txt
Share Improve this answer
C++_Ranges_library/C++_Ranges_library_155_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_97_7.txt
/ranges/view_interface/front "cpp/ranges/view interface/front") (C++20) | returns the first element in the derived view. Provided if it satisfies [ ` forward_range ` ](/w/cpp/ranges/forward_range "cpp/ranges/forward range") . (public member function of ` std::ranges::view_interface<D> ` ) [ [edit] ](https://en.cp...
C++_Ranges_library/C++_Ranges_library_140_25.txt
the built-in integer types. | [ BSL-1.0 ](https://www.boost.org/LICENSE_1_0.txt) | header-only [ cpp-measures ](https://github.com/carlomilanesi/cpp-measures/) | A C++11 library to handle physical measures | MPL-2.0 | header-only [ G+Smo ](https://github.com/gismo/gismo) | A cross-platform library for is...
C++_Ranges_library/C++_Ranges_library_130_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_59_29.txt
nstexpr iterator& operator++(); constexpr void operator++(int); constexpr iterator operator++(int) requires forward_range<V>;   constexpr iterator& operator--() requires bidirectional_range<V>; constexpr iterator operator--(int) requires bidirectional_range<V>;   friend c...
C++_Ranges_library/C++_Ranges_library_3_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_47_2.txt
utFunction ](/w/cpp/named_req/UnformattedOutputFunction "cpp/named req/UnformattedOutputFunction") --- [ Formatters ](/w/cpp/named_req#Formatters "cpp/named req") | [ BasicFormatter ](/w/cpp/named_req/BasicFormatter "cpp/named req/BasicFormatter") (C++20) --- | [ Formatter ](/w/cpp/named_req/...
C++_Ranges_library/C++_Ranges_library_13_0.txt
##### [ cppreference.com ](/) [ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Fiterator+t "You are encouraged to log in; however, it is not mandatory \[o\]") ##### Namespaces * [ Page ](/w/cpp/ranges/iterator_t "View the content page \[c\]") * [ Discussion ](/w/Talk:cpp/ranges/iterat...
C++_Ranges_library/C++_Ranges_library_136_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_141_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_150_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_44_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_18_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_63_5.txt
/common_range "cpp/ranges/common range") , otherwise [ std:: move_sentinel ](http://en.cppreference.com/w/cpp/iterator/move_sentinel) ( [ ranges:: end ](http://en.cppreference.com/w/cpp/ranges-ranges-placeholder/end) ( base_ ) ) . 2) Returns [ std:: move_iterator ](http://en.cppreference.com/w/cpp/iterator/m...
C++_Ranges_library/C++_Ranges_library_129_6.txt
](/w/Special:SpecialPages "A list of all special pages \[q\]") * [ Printable version ](/mwiki/index.php?title=cpp/ranges/basic_istream_view&printable=yes "Printable version of this page \[p\]") * [ Permanent link ](/mwiki/index.php?title=cpp/ranges/basic_istream_view&oldid=167023 "Permanent link to this revision of...
C++_Ranges_library/what-will-be-the-output-of-the-following-c-code--5ab8a41bc56b6664bc9bacdd8_32_0.txt
Mock Tests & Quizzes Get Started for Free Download_on_the_App_Store_Badge_US- UK_RGB_blk_4SVG_092917
C++_Ranges_library/param-pack.html4_51_0.txt
auto tuple_mult(auto scalar, auto tpl) { return apply([&scalar]<typename ...T>(T...t) { return std::tuple(T(scalar * t)...); }, tpl); } int main() { auto t = std::tuple(1, 2U, 4.0); t = tuple_mult(2, t); std::cout << get<0>(t) << " " ...
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_38_0.txt
Improve this answer Follow
C++_Ranges_library/C++_Ranges_library_59_5.txt
nge knows its size in constant time (concept) [ [edit] ](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/ranges/dsc_sized_range&action=edit) [ ranges::view ](/w/cpp/ranges/view "cpp/ranges/view") (C++20) | specifies that a range is a view, that is, it has constant time copy/move/assignment (c...
C++_Ranges_library/C++_Ranges_library_59_3.txt
x.php?title=Template:cpp/header/navbar_content&action=edit) This header is part of the [ ranges ](/w/cpp/ranges "cpp/ranges") library. ## Contents * 1 Namespace aliases * 2 Includes * 3 Concepts * 3.1 Range concepts * 4 Functions * 4.1 Range conversions * 5 Classes * 5.1 Range p...
C++_Ranges_library/C++_Ranges_library_130_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_126_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_138_3.txt
he expression views :: all ( e ) is [ expression-equivalent ](/w/cpp/language/expressions#Expression- equivalence "cpp/language/expressions") to: * Implicitly converting e to a [ std:: decay_t ](http://en.cppreference.com/w/cpp/types/decay) < R > prvalue, if [ std:: decay_t ](http://en.cppreference.co...
C++_Ranges_library/C++_Ranges_library_45_2.txt
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::reverse ](/w/cpp/ranges/revers...
C++_Ranges_library/C++_Ranges_library_99_15.txt
constructors | [ P1008R1 ](https://wg21.link/P1008R1) | 9 | 8 | 19.20* | 10.0.1* | 5.1 | 2021.1 | | | | | | 11.0 | 20.7 | 12.0 ` constexpr ` [ virtual function ](/w/cpp/language/virtual "cpp/language/virtual") | [ P1064R0 ](https://wg21.link/P1064R0) | 9 | 9 | 19.28 (16.9)* | 11.0.3*...
C++_Ranges_library/C++_Ranges_library_143_3.txt
bitset") , for freestanding, although these headers may not be portable or provide the same capabilities as a hosted implementation. It is better to avoid using them in a freestanding environment, even if the toolchain provides them. [ Feature-test ](/w/cpp/utility/feature_test "cpp/utility/feature test") macro | Va...
C++_Ranges_library/C++_Ranges_library_29_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_99_10.txt
19.36* (partial) * 19.37* | partial* | | | Rectifying constant iterators, sentinels, and ranges | [ P2278R4 ](https://wg21.link/P2278R4) | 13 | | 19.35* (partial)* 19.36* | | | | Formatting Ranges | [ P2286R8 ](https://wg21.link/P2286R8) | | 16 | 19.37* (partial)* 19.39* (pa...
C++_Ranges_library/C++_Ranges_library_75_1.txt
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/elements of") (C++23) --- [ Dan...
C++_Ranges_library/C++_Ranges_library_70_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_102_0.txt
##### [ cppreference.com ](/) [ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Ffilter+view "You are encouraged to log in; however, it is not mandatory \[o\]") ##### Namespaces * [ Page ](/w/cpp/ranges/filter_view "View the content page \[c\]") * [ Discussion ](/mwiki/index.php?title=...
C++_Ranges_library/C++_Ranges_library_47_0.txt
##### [ cppreference.com ](/) [ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Fnamed+req%2FRangeAdaptorClosureObject "You are encouraged to log in; however, it is not mandatory \[o\]") ##### Namespaces * [ Page ](/w/cpp/named_req/RangeAdaptorClosureObject "View the content page \[c\]") * [ Di...
C++_Ranges_library/C++_Ranges_library_110_0.txt
##### [ cppreference.com ](/) [ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges "You are encouraged to log in; however, it is not mandatory \[o\]") ##### Namespaces * [ Page ](/w/cpp/ranges "View the content page \[c\]") * [ Discussion ](/mwiki/index.php?title=Talk:cpp/ranges&action=edi...
C++_Ranges_library/C++_Ranges_library_95_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_46_2.txt
/utility/pair") --- [ tuple ](/w/cpp/utility/tuple "cpp/utility/tuple") (C++11) [ optional ](/w/cpp/utility/optional "cpp/utility/optional") (C++17) [ any ](/w/cpp/utility/any "cpp/utility/any") (C++17) [ variant ](/w/cpp/utility/variant "cpp/utility/variant") (C++17) | [ tuple_size ](/w/cpp/utilit...
C++_Ranges_library/C++_Ranges_library_151_2.txt
+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") [ common_view views::common ](/w/cpp/range...
C++_Ranges_library/C++_Ranges_library_96_7.txt
(C++11) (C++11) | checks if a type has a constructor for specific arguments (class template) [ [edit] ](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/types/dsc_is_constructible&action=edit) [ is_default_constructible is_trivially_default_constructible is_nothrow_default_constructible ](/w...
C++_Ranges_library/C++_Ranges_library_91_15.txt
ppreference.com/mwiki/index.php?title=Template:cpp/algorithm/dsc_binary_search&action=edit) [ ranges::binary_search ](/w/cpp/algorithm/ranges/binary_search "cpp/algorithm/ranges/binary search") (C++20) | determines if an element exists in a partially-ordered range (niebloid) [ [edit] ](https://en.cppreference....