id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
C++_Ranges_library/C++_Ranges_library_114_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_145_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_25_1.txt | _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 "cp... | |
C++_Ranges_library/C++_Ranges_library_95_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_56_1.txt | ) ` ](/w/cpp/utility/program/_Exit "cpp/utility/program/ Exit")
(since C++11)
### [ [ edit ](/mwiki/index.php?title=cpp/symbol_index&action=edit§ion=4
"Edit section: A") ] A
[ ` abs() ` ](/w/cpp/numeric/math/abs "cpp/numeric/math/abs") ( int )
[ ` abs() ` ](/w/cpp/numeric/math/fabs "cpp/numeric/math/fabs"... | |
C++_Ranges_library/C++_Ranges_library_91_5.txt | st whether a class represents an execution policy
(class template) [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/dsc_is_execution_policy&action=edit)
[ Feature-test ](/w/cpp/utility/feature_test "cpp/utility/feature test") macro | Value | Std | Feature
---|---|---|--... | |
C++_Ranges_library/param-pack.html4_3_0.txt | # Introduction
C++11 introduced variadic templates , which permit type-safe functions to
accept a variable number of arguments. They also permit template types such as
` std::tuple ` that can hold a variable number of elements. The main language
mechanism enabling variadic templates is parameter packs , which hol... | |
C++_Ranges_library/what-will-be-the-output-of-the-following-c-code--5ab8a41bc56b6664bc9bacdd8_28_0.txt | Share on Whatsapp
Latest ISRO Scientist CS Updates | |
C++_Ranges_library/C++_Ranges_library_27_1.txt | 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_reference_t
range_common_reference_t ](/w/cpp/range... | |
C++_Ranges_library/C++_Ranges_library_73_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_21_0.txt | ##### [ cppreference.com ](/)
[ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Fnamed+req
"You are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/cpp/named_req "View the content page \[c\]")
* [ Discussion ](/w/Talk:cpp/named_req "Discussion about the... | |
C++_Ranges_library/C++_Ranges_library_109_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_97_6.txt | e) < __cartesian_product_fn & , Args... > , and
* [ std:: invocable ](http://en.cppreference.com/w/cpp/concepts/invocable) < const __cartesian_product_fn & , Args... > .
Otherwise, no function call operator of ` ___cartesian_product_fn_ `
participates in overload resolution.
### [ [ edit
](/mwiki/index.... | |
C++_Ranges_library/C++_Ranges_library_122_6.txt | ]")
* [ Special pages ](/w/Special:SpecialPages "A list of all special pages \[q\]")
* [ Printable version ](/mwiki/index.php?title=cpp/numeric&printable=yes "Printable version of this page \[p\]")
* [ Permanent link ](/mwiki/index.php?title=cpp/numeric&oldid=168202 "Permanent link to this revision of the page")
... | |
C++_Ranges_library/C++_Ranges_library_38_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 **
... | |
C++_Ranges_library/C++_Ranges_library_153_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_11_5.txt | 201510L | (C++17) | [ P0012R1 ](https://wg21.link/P0012R1)
` __cpp_nontype_template_args ` | Allow constant evaluation for all [ non-type template arguments ](/w/cpp/language/template_parameters#Template_non-type_arguments "cpp/language/template parameters") | 201411L | (C++17) | [ N4268 ](https://wg21.lin... | |
C++_Ranges_library/C++_Ranges_library_152_5.txt | dex.php?title=Template:cpp/ranges/view_interface/dsc_front&action=edit)
[ back ](/w/cpp/ranges/view_interface/back "cpp/ranges/view interface/back") (C++20) | returns the last element in the derived view. Provided if it satisfies [ ` bidirectional_range ` ](/w/cpp/ranges/bidirectional_range "cpp/ranges/bidirection... | |
C++_Ranges_library/C++_Ranges_library_59_49.txt | r; // exposition only
// class template zip_view::sentinel
template<bool> class sentinel; // exposition only
public:
zip_view() = default;
constexpr explicit zip_view(Views... views);
constexpr auto begin() requires (!(__simple_view<Views> && ...... | |
C++_Ranges_library/C++_Ranges_library_126_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_5_1.txt | "cpp/io/basic ispanstream")
(C++23)
[ basic_ospanstream ](/w/cpp/io/basic_ospanstream "cpp/io/basic ospanstream")
(C++23)
[ basic_spanstream ](/w/cpp/io/basic_spanstream "cpp/io/basic spanstream")
(C++23)
[ istrstream ](/w/cpp/io/istrstream "cpp/io/istrstream") ( C++98/26* )
[ ostrstream ](/w/cpp/io/ostr... | |
C++_Ranges_library/C++_Ranges_library_126_34.txt | COMPILER_FEATURE_ENTRY(202306L, __cpp_lib_not_fn)
COMPILER_FEATURE_ENTRY(202311L, __cpp_lib_out_ptr)
COMPILER_FEATURE_ENTRY(202311L, __cpp_lib_ranges_as_const)
COMPILER_FEATURE_ENTRY(202306L, __cpp_lib_ratio)
COMPILER_FEATURE_ENTRY(202306L, __cpp_lib_rcu)
COMPILER_FEATURE... | |
C++_Ranges_library/C++_Ranges_library_57_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_109_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/what-will-be-the-output-of-the-following-c-code--5ab8a41bc56b6664bc9bacdd8_62_0.txt | [email protected]
Toll Free: 1800 833 0800 | |
C++_Ranges_library/C++_Ranges_library_51_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/accumulate4_7_0.txt | Algorithm library
Constrained algorithms and algorithms on ranges (C++20)
---
Constrained algorithms, e.g. ` ranges::copy ` , ` ranges::sort ` , ...
Execution policies (C++17)
| | is_execution_policy (C++17)
---
| execution::seq execution::par execution::par_unseq execution::unseq
(C++17) (... | |
C++_Ranges_library/C++_Ranges_library_96_8.txt | (C++23) | checks if a reference is bound to a temporary in copy-initialization
(class template) [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/types/dsc_reference_converts_from_temporary&action=edit)
#### [ [ edit ](/mwiki/index.php?title=cpp/meta&action=edit§ion=5 "Edit
sect... | |
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_16_0.txt | Q&A for work
Connect and share knowledge within a single location that is structured and
easy to search. | |
C++_Ranges_library/C++_Ranges_library_70_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/C++_Ranges_library_12_2.txt | it_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 views::r... | |
C++_Ranges_library/C++_Ranges_library_31_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_94_0.txt | ##### [ cppreference.com ](/)
[ Create account
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Fview%29&type=signup)
* [ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Fview%29 "You are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ ... | |
C++_Ranges_library/param-pack.html4_53_0.txt | Once again, life is better in C++20 because a lambda expression can have
explicit type parameters, allowing us to capture the template parameter pack `
...I ` from the inferred ` std::index_sequence ` type of the function
argument.
## Using lambda expressions to capture packs in requires clauses | |
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_124_0.txt | 0
How can I validate that an user enter a value (int) instead of skip with the
enter key | |
C++_Ranges_library/C++_Ranges_library_150_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/param-pack.html4_56_0.txt | Of course, this could be handled by defining custom helper types and maybe a
dedicated concept, but a cleaner solution is just to unpack the parameter pack
with a lambda right in the requires clause:
template<char ...C>
requires (sizeof...(C)%2 == 0 &&
[](char zero, char x, auto ...rest... | |
C++_Ranges_library/C++_Ranges_library_32_14.txt | xpr iter_difference_t<I> distance(I first, S last);
template<class I, sized_sentinel_for<decay_t<I>> S>
constexpr iter_difference_t<decay_t<I>> distance(I&& first, S last);
template<range R>
constexpr range_difference_t<R> distance(R&& r);
// ranges::next
templa... | |
C++_Ranges_library/C++_Ranges_library_107_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_88_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_51_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_38_3.txt | erence.com/w/cpp/ranges/view)
V >
requires ( not [ ranges:: common_range
](http://en.cppreference.com/w/cpp/ranges/common_range) < V > and
[ std:: copyable ](http://en.cppreference.com/w/cpp/concepts/copyable) < [
ranges:: iterator_t ](http://en.cppreference.com/w/cpp/ranges-ranges-
placeholder/iterator_t)... | |
C++_Ranges_library/C++_Ranges_library_70_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_53_5.txt | /w/cpp/ranges/sized_range
"cpp/ranges/sized range") and ` C ` satisfies /*reservable-container*/ , the
constructed object ` c ` of type ` C ` is able to reserve storage with the
initial storage size [ ranges:: size
](http://en.cppreference.com/w/cpp/ranges/size) ( r ) to prevent additional
allocations during ins... | |
C++_Ranges_library/C++_Ranges_library_128_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_28_3.txt | aptorObject") (and also [ RangeAdaptorClosureObject
](/w/cpp/named_req/RangeAdaptorClosureObject "cpp/named
req/RangeAdaptorClosureObject") ). The expression views :: keys ( e )
is [ expression-equivalent ](/w/cpp/language/expressions#Expression-
equivalence "cpp/language/expressions") to keys_view < [ views:: ... | |
C++_Ranges_library/C++_Ranges_library_51_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_156_2.txt | it_cast "cpp/language/explicit cast")
[ ` static_cast ` ](/w/cpp/language/static_cast "cpp/language/static cast") \-
[ ` dynamic_cast ` ](/w/cpp/language/dynamic_cast "cpp/language/dynamic cast")
[ ` const_cast ` ](/w/cpp/language/const_cast "cpp/language/const cast") \- [
` reinterpret_cast ` ](/w/cpp/language/rei... | |
C++_Ranges_library/C++_Ranges_library_5_0.txt | ##### [ cppreference.com ](/)
[ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Fio "You are
encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/cpp/io "View the content page \[c\]")
* [ Discussion ](/w/Talk:cpp/io "Discussion about the content page \[t\]")... | |
C++_Ranges_library/C++_Ranges_library_56_21.txt | ructible") <> (since C++17)
[ ` is_corresponding_member<>() ` ](/w/cpp/types/is_corresponding_member
"cpp/types/is corresponding member") (since C++20)
[ ` is_default_constructible ` ](/w/cpp/types/is_default_constructible
"cpp/types/is default constructible") <> (since C++11)
[ ` is_default_constructible_v ` ](/... | |
C++_Ranges_library/C++_Ranges_library_144_0.txt | ##### [ cppreference.com ](/)
[ Log in
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Fas+const+view
"You are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/cpp/ranges/as_const_view "View the content page \[c\]")
* [ Discussion ](/mwiki/index.php?ti... | |
C++_Ranges_library/C++_Ranges_library_57_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_57_16.txt | p "cpp/header/map") [ ` <set> ` ](/w/cpp/header/set "cpp/header/set") | (C++14) | [ N3657 ](https://wg21.link/N3657)
` __cpp_lib_generic_ unordered_lookup ` | Heterogeneous comparison lookup in [ unordered associative containers ](/w/cpp/container#Unordered_associative_containers "cpp/container") | 201811L | ... | |
C++_Ranges_library/C++_Ranges_library_68_4.txt | anges/constant range") .
* Otherwise, [ ranges:: begin ](http://en.cppreference.com/w/cpp/ranges-ranges-placeholder/begin) ( [ std:: as_const ](http://en.cppreference.com/w/cpp/utility/as_const) ( e ) ) if const T models [ ` constant_range ` ](/w/cpp/ranges/constant_range "cpp/ranges/constant range") . ... | |
C++_Ranges_library/C++_Ranges_library_140_9.txt | ease/doc/html/program_options.html) | The library allows to obtain program options, that is (name, value) pairs from the user, via conventional methods such as command line, config file, and environment variables. | [ BSL-1.0 ](https://www.boost.org/LICENSE_1_0.txt) |
[ CLI11 ](https://github.com/CLIUtils/CLI11) ... | |
C++_Ranges_library/C++_Ranges_library_3_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/what-will-be-the-output-of-the-following-c-code--5ab8a41bc56b6664bc9bacdd8_69_0.txt | Copyright © 2014-2022 Testbook Edu Solutions Pvt. Ltd.: All rights reserved
User Policy Terms Privacy | |
C++_Ranges_library/C++_Ranges_library_114_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/checking-cin-input-stream-produces-an-integer9_25_0.txt | Follow
edited Sep 17, 2018 at 5:33 | |
C++_Ranges_library/C++_Ranges_library_56_26.txt | digit")
[ ` isxdigit() ` ](/w/cpp/string/byte/isxdigit "cpp/string/byte/isxdigit")
[ ` isxdigit<>() ` ](/w/cpp/locale/isxdigit "cpp/locale/isxdigit") (locale)
[ ` iter_common_reference_t ` ](/w/cpp/iterator/iter_t "cpp/iterator/iter t")
<> (since C++20)
[ ` iter_const_reference_t ` ](/w/cpp/iterator/iter_t "cpp... | |
C++_Ranges_library/C++_Ranges_library_91_16.txt | late:cpp/algorithm/dsc_merge&action=edit)
[ ranges::merge ](/w/cpp/algorithm/ranges/merge "cpp/algorithm/ranges/merge") (C++20) | merges two sorted ranges
(niebloid) [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/ranges/dsc_merge&action=edit)
[ inplace_merge ](/w/cpp/alg... | |
C++_Ranges_library/C++_Ranges_library_53_0.txt | ##### [ cppreference.com ](/)
[ Create account
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Fto&type=signup)
* [ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Fto "You are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/... | |
C++_Ranges_library/C++_Ranges_library_140_13.txt | n) ) | BSD 2-Clause "Simplified" | make
[ crypto++ ](https://www.cryptopp.com/) | A free C++ Class Library of Cryptographic Schemes. ( [ Src ](https://github.com/weidai11/cryptopp) ) | Boost | make
[ gnutls ](https://www.gnutls.org/) | A secure communications library implementing the SSL, TLS and DTLS p... | |
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_107_0.txt | To learn more, see our tips on writing great answers .
Draft saved | |
C++_Ranges_library/C++_Ranges_library_75_2.txt | 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 views::reve... | |
C++_Ranges_library/C++_Ranges_library_64_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/param-pack.html4_58_0.txt |
template<char ...C>
requires (sizeof...(C)%2 == 0 &&
[](char zero, char x, auto ...rest) {
return zero == '0' && x == 'x' && ((hexdigit(rest) != -1) && ...);
}(C...))
consteval auto
operator""_hex()
{
return []<std::size_t ...I>(std::index_... | |
C++_Ranges_library/what-will-be-the-output-of-the-following-c-code--5ab8a41bc56b6664bc9bacdd8_17_0.txt | View all Free tests >
Free | |
C++_Ranges_library/C++_Ranges_library_110_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_141_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_28_2.txt | [ 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/ranges/common_view "c... | |
C++_Ranges_library/C++_Ranges_library_109_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_132_6.txt | itting another [ ` view ` ](/w/cpp/ranges/view "cpp/ranges/view") using a delimiter
(class template) (range adaptor object) [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/ranges/dsc_lazy_split_view&action=edit)
---|---
[ ranges::join_view views::join ](/w/cpp/ranges/join_view "cpp/... | |
C++_Ranges_library/C++_Ranges_library_152_1.txt | _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 "cp... | |
C++_Ranges_library/C++_Ranges_library_29_34.txt | COMPILER_FEATURE_ENTRY(202306L, __cpp_lib_not_fn)
COMPILER_FEATURE_ENTRY(202311L, __cpp_lib_out_ptr)
COMPILER_FEATURE_ENTRY(202311L, __cpp_lib_ranges_as_const)
COMPILER_FEATURE_ENTRY(202306L, __cpp_lib_ratio)
COMPILER_FEATURE_ENTRY(202306L, __cpp_lib_rcu)
COMPILER_FEATURE... | |
C++_Ranges_library/C++_Ranges_library_30_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_view
"cp... | |
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_145_0.txt | To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
lang-cpp | |
C++_Ranges_library/C++_Ranges_library_153_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_132_1.txt | (/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/elements of")
(C++23)
-... | |
C++_Ranges_library/C++_Ranges_library_78_7.txt | rerror_s ` ](/w/c/string/byte/strerror "c/string/byte/strerror") | [ ` vsscanf_s ` ](/w/c/io/vfscanf "c/io/vfscanf") |
[ ` mbsrtowcs_s ` ](/w/c/string/multibyte/mbsrtowcs "c/string/multibyte/mbsrtowcs") | [ ` strlen_s ` ](/w/c/string/byte/strlen "c/string/byte/strlen") | [ ` vswprintf_s ` ](/w/c/io/vfwprintf "c/i... | |
C++_Ranges_library/C++_Ranges_library_109_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_57_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_23_0.txt | A unary left fold has the form ` (... ` â ` pat) ` and is equivalent to `
(( ` p 1 â ââ p 2 ` ) ` â ââ ⯠` ) ` â ââ p n .
A binary right fold has the form ` (pat ` â ` ... ` â ` e) ` and is
equivalent to p 1 â ` ( ` p 2 â ` ( ` â¯â ` ( ` p n â `
e))) ` . | |
C++_Ranges_library/C++_Ranges_library_59_0.txt | ##### [ cppreference.com ](/)
[ Log in
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Fheader%2Franges "You
are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/cpp/header/ranges "View the content page \[c\]")
* [ Discussion ](/w/Talk:cpp/header/ranges "Discus... | |
C++_Ranges_library/C++_Ranges_library_99_9.txt | 3* | | |
Deprecating [ std::aligned_storage ](/w/cpp/types/aligned_storage "cpp/types/aligned storage") and [ std::aligned_union ](/w/cpp/types/aligned_union "cpp/types/aligned union") | [ P1413R3 ](https://wg21.link/P1413R3) | 13 | 16 | 19.33* | | | |
[ ` std::reference_constructs_from_temporary `... | |
C++_Ranges_library/C++_Ranges_library_157_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_64_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/checking-cin-input-stream-produces-an-integer9_150_0.txt | * Blog
* Facebook
* Twitter
* LinkedIn
* Instagram
Site design / logo © 2024 Stack Exchange Inc; user contributions licensed
under CC BY-SA . rev 2024.4.30.8466 | |
C++_Ranges_library/C++_Ranges_library_156_7.txt | reference.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/language "A list of all wiki pages that link here ... | |
C++_Ranges_library/C++_Ranges_library_134_1.txt |
| [ 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/ranges#Da... | |
C++_Ranges_library/C++_Ranges_library_2_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/checking-cin-input-stream-produces-an-integer9_111_0.txt | ### Post as a guest
Name | |
C++_Ranges_library/C++_Ranges_library_103_5.txt | py_constructible ](http://en.cppreference.com/w/cpp/concepts/copy_constructible) < V > ; | (1) | (since C++20)
---|---|---
constexpr V base ( ) && ; | (2) | (since C++20)
| |
Returns the underlying view.
1) Copy-constructs the result from the underlying view. Equivalent to return
base_ ... | |
C++_Ranges_library/C++_Ranges_library_145_4.txt | :strcpy](http://en.cppreference.com/w/cpp/string/byte/strcpy)(dst, std::[ranges::cdata](http://en.cppreference.com/w/cpp/ranges-ranges-placeholder/cdata)(src));
// [data(src), data(src) + size(src)] is guaranteed to be an NTBS
[std::cout](http://en.cppreference.com/w/cpp/io/cout) << dst;
}
Ou... | |
C++_Ranges_library/C++_Ranges_library_93_1.txt | terator_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/elements of")
(C++23)
---
... | |
C++_Ranges_library/C++_Ranges_library_136_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/checking-cin-input-stream-produces-an-integer9_35_0.txt |
int x;
cin >> x;
if (cin.fail()) {
//Not an int.
}
Furthermore, you can continue to get input until you get an int via: | |
C++_Ranges_library/C++_Ranges_library_78_12.txt | org/) [  ](http://qbnz.com/highlighter/) [  ](http://www.tigertech.net/referral/cppreference.com)
| |
C++_Ranges_library/C++_Ranges_library_151_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_128_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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.