id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
C++_Ranges_library/C++_Ranges_library_135_0.txt | ##### [ cppreference.com ](/)
[ Log in
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Finput+range
"You are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/cpp/ranges/input_range "View the content page \[c\]")
* [ Discussion ](/mwiki/index.php?title=... | |
C++_Ranges_library/C++_Ranges_library_55_6.txt | [assert](http://en.cppreference.com/w/cpp/error/assert)(ov2.size() == 6);
}
Possible output:
sizeof(ov): 32
range-for: cosmos
### [ [ edit
](/mwiki/index.php?title=cpp/ranges/owning_view&action=edit§ion=8 "Edit
section: See also") ] See also
[ ranges::ref_view ](/w/cpp/ranges/ref_... | |
C++_Ranges_library/C++_Ranges_library_29_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_141_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_93_8.txt | .com)
| |
C++_Ranges_library/C++_Ranges_library_0_9.txt | en.cppreference.com/mwiki/index.php?title=Template:cpp/thread/dsc_binary_semaphore&action=edit)
### Latches and Barriers
Latches and barriers are thread coordination mechanisms that allow any number
of threads to block until an expected number of threads arrive. A latch cannot
be reused, while a barrier can be u... | |
C++_Ranges_library/C++_Ranges_library_109_4.txt | gory "cpp/language/value category") | 201606L | (C++17) | [ P0135R1 ](https://wg21.link/P0135R1)
` __cpp_hex_float ` | [ Hexadecimal floating literals ](/w/cpp/language/floating_literal "cpp/language/floating literal") | 201603L | (C++17) | [ P0245R1 ](https://wg21.link/P0245R1)
` __cpp_if_consteval ` | ... | |
C++_Ranges_library/C++_Ranges_library_97_8.txt | section: References") ] References
* C++23 standard (ISO/IEC 14882:2023):
* 26.7.31 Cartesian product view [range.stride]
### [ [ edit
](/mwiki/index.php?title=cpp/ranges/cartesian_product_view&action=edit§ion=8
"Edit section: See also") ] See also
[ ranges::zip_view views::zip ](/w/cpp/ranges... | |
C++_Ranges_library/C++_Ranges_library_93_3.txt | w/iterator/operator*")
[ zip_view:: _iterator_ ::operator[]
](/w/cpp/ranges/zip_view/iterator/operator_at "cpp/ranges/zip
view/iterator/operator at")
[ zip_view:: _iterator_ ::operator++
zip_view:: _iterator_ ::operator++ (int)
zip_view:: _iterator_ ::operator--
zip_view:: _iterator_ ::operator-- (int)
zi... | |
C++_Ranges_library/C++_Ranges_library_90_3.txt | s dereferenceable, and ` [ `
++ i ` , ` \-- n ` ) ` is a valid counted range.
Formally, if it and count are expressions, ` T ` is [ std:: decay_t
](http://en.cppreference.com/w/cpp/types/decay) < decltype ( ( it ) ) >
, and ` D ` is [ std:: iter_difference_t
](http://en.cppreference.com/w/cpp/iterato... | |
C++_Ranges_library/C++_Ranges_library_24_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_81_0.txt | ##### [ cppreference.com ](/)
[ Log in
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Flazy+split+view
"You are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/cpp/ranges/lazy_split_view "View the content page \[c\]")
* [ Discussion ](/w/Talk:cpp/ran... | |
C++_Ranges_library/C++_Ranges_library_157_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_62_2.txt | zy_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 vi... | |
C++_Ranges_library/C++_Ranges_library_91_18.txt | returns the smallest element in a range
(niebloid) [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/ranges/dsc_min_element&action=edit)
[ minmax ](/w/cpp/algorithm/minmax "cpp/algorithm/minmax") (C++11) | returns the smaller and larger of two elements
(function template) ... | |
C++_Ranges_library/C++_Ranges_library_73_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_18.txt | C++17)
[ ` hash ` ](/w/cpp/utility/hash "cpp/utility/hash") <> (since C++11)
[ ` hecto ` ](/w/cpp/numeric/ratio/ratio "cpp/numeric/ratio/ratio") (since
C++11)
[ ` hermite() ` ](/w/cpp/numeric/special_functions/hermite
"cpp/numeric/special functions/hermite") (since C++17)
[ ` hermitef() ` ](/w/cpp/numeric/speci... | |
C++_Ranges_library/C++_Ranges_library_109_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_31_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/param-pack.html4_49_0.txt | Often the comma operator is handy to execute some action before testing the
stop condition in a fold over a logical operator. For another example of the
technique, see this implementation of ` operator<=> ` on a tuple-like type.
## Using lambda expressions to capture packs | |
C++_Ranges_library/C++_Ranges_library_131_0.txt | ##### [ cppreference.com ](/)
[ Create account
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Fiterator+t%29&type=signup)
* [ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Fiterator+t%29 "You are encouraged to log in; however, it is not mandatory \[o\]")
##### Namesp... | |
C++_Ranges_library/C++_Ranges_library_25_6.txt | ember function of ` std::ranges::view_interface<D> ` ) [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/ranges/view_interface/dsc_operator_at&action=edit)
### [ [ edit
](/mwiki/index.php?title=cpp/ranges/take_view&action=edit§ion=2 "Edit
section: Deduction guides") ] [ Deduction gui... | |
C++_Ranges_library/C++_Ranges_library_93_7.txt | y: α β γ δ ε
z: A B C D E F
zip(x,y,z):
1 α A
2 β B
3 γ C
4 δ D
After modification, z: a b c d E F
### [ [ edit
](/mwiki/index.php?title=cpp/ranges/zip_view&action=edit§ion=8 "Edit
section: See also") ] See also
[ ranges::zip_transform_view views::zip_transform ](/w... | |
C++_Ranges_library/C++_Ranges_library_80_6.txt | 10 to 19.
4) Same as (3) , except that value_ is initialized with the ` W ` value
stored in first , and
* if ` W ` and ` Bound ` are the same type, then the type of last is /* iterator */ and bound_ initialized with the ` W ` value stored in last ,
* otherwise, if the ` iota_view ` is unbounded (i... | |
C++_Ranges_library/C++_Ranges_library_56_10.txt | ](/w/cpp/coroutine/coroutine_handle
"cpp/coroutine/coroutine handle") <> (since C++20)
[ ` coroutine_traits ` ](/w/cpp/coroutine/coroutine_traits
"cpp/coroutine/coroutine traits") <> (since C++20)
[ ` cos() ` ](/w/cpp/numeric/math/cos "cpp/numeric/math/cos")
[ ` cos<>() ` ](/w/cpp/numeric/complex/cos "cpp/numeric... | |
C++_Ranges_library/C++_Ranges_library_0_6.txt | flag clear") (C++11) (C++11) | atomically sets the value of the flag to false
(function) [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/atomic/dsc_atomic_flag_clear&action=edit)
[ atomic_flag_test atomic_flag_test_explicit ](/w/cpp/atomic/atomic_flag_test "cpp/atomic/atomic flag ... | |
C++_Ranges_library/C++_Ranges_library_130_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_109_18.txt | e") ) | 202306L | [ ` <type_traits> ` ](/w/cpp/header/type_traits "cpp/header/type traits") | (C++26) | [ P2641R4 ](https://wg21.link/P2641R4)
` __cpp_lib_jthread ` | [ Stop token ](/w/cpp/thread/stop_token "cpp/thread/stop token") and [ joining thread ](/w/cpp/thread/jthread "cpp/thread/jthread") | 201911L ... | |
C++_Ranges_library/C++_Ranges_library_2_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_110_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_90_5.txt | gesLinked/cpp/ranges/view_counted "Recent changes in pages linked from this page \[k\]")
* [ Upload file ](http://upload.cppreference.com/w/Special:Upload "Upload files \[u\]")
* [ Special pages ](/w/Special:SpecialPages "A list of all special pages \[q\]")
* [ Printable version ](/mwiki/index.php?title=cpp/range... | |
C++_Ranges_library/C++_Ranges_library_31_21.txt | view") | 202207L | [ ` <ranges> ` ](/w/cpp/header/ranges "cpp/header/ranges") | (C++23) | [ P2278R4 ](https://wg21.link/P2278R4)
Making std::basic_const_iterator follow its underlying type's convertibility | 202311L | [ ` <ranges> ` ](/w/cpp/header/ranges "cpp/header/ranges") | (C++26) | [ P2836R1 ](h... | |
C++_Ranges_library/C++_Ranges_library_60_0.txt | ##### [ cppreference.com ](/)
[ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Ferror "You
are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/cpp/error "View the content page \[c\]")
* [ Discussion ](/w/Talk:cpp/error "Discussion about the content pag... | |
C++_Ranges_library/C++_Ranges_library_115_3.txt | ` is an lvalue reference type),
* const T otherwise.
A call to ` ranges::crend ` is [ expression-equivalent ](/w/cpp/language/expressions#Expression-equivalence "cpp/language/expressions") to [ ranges:: rend ](http://en.cppreference.com/w/cpp/ranges/rend) ( static_cast < CT && > ( t ) ) . | (until C... | |
C++_Ranges_library/C++_Ranges_library_29_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_95_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_146_2.txt | 3) (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/ranges/... | |
C++_Ranges_library/C++_Ranges_library_32_24.txt | ence.com/w/cpp/ranges-ranges-placeholder/iterator_t)<Container> i);
constexpr insert_iterator& operator=(const typename Container::value_type& value);
constexpr insert_iterator& operator=(typename Container::value_type&& value);
constexpr insert_iterator& operator*();
constexpr ins... | |
C++_Ranges_library/C++_Ranges_library_45_4.txt | _rbegin_fn_ ` participates in
overload resolution.
### [ [ edit ](/mwiki/index.php?title=cpp/ranges/rbegin&action=edit§ion=1
"Edit section: Notes") ] Notes
If the argument is an rvalue (i.e. ` T ` is an object type) and [ ranges::
enable_borrowed_range
](http://en.cppreference.com/w/cpp/ranges/borrowed_range) ... | |
C++_Ranges_library/C++_Ranges_library_82_13.txt | /algorithm/ranges/dsc_pop_heap&action=edit)
[ ranges::sort_heap ](/w/cpp/algorithm/ranges/sort_heap "cpp/algorithm/ranges/sort heap") (C++20) | turns a max heap into a range of elements sorted in ascending order
(niebloid) [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/rang... | |
C++_Ranges_library/C++_Ranges_library_34_0.txt | ##### [ cppreference.com ](/)
[ Create account
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Fiterator&type=signup)
* [ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Fiterator "You are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/cpp/it... | |
C++_Ranges_library/C++_Ranges_library_109_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_3_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_32_2.txt | "cpp/header/generator") (C++23)
---
Algorithms
| [ ` <algorithm> ` ](/w/cpp/header/algorithm "cpp/header/algorithm")
---
| [ ` <numeric> ` ](/w/cpp/header/numeric "cpp/header/numeric")
---
Numerics
| [ ` <cfenv> ` ](/w/cpp/header/cfenv "cpp/header/cfenv") (C++11)
---
[ ` <complex> ` ](/... | |
C++_Ranges_library/C++_Ranges_library_141_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_137_0.txt | ##### [ cppreference.com ](/)
[ Log in
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Fview "You
are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/cpp/ranges/view "View the content page \[c\]")
* [ Discussion ](/w/Talk:cpp/ranges/view "Discussion a... | |
C++_Ranges_library/param-pack.html4_5_0.txt | A variadic template is a template whose definition captures a parameter pack
in its template arguments or function arguments. A parameter pack is captured
by introducing an identifier prefixed by an ellipsis, as in ` ...X ` . Once
captured, a parameter pack can later be used in a pattern expanded by an
ellipsis (gen... | |
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_88_0.txt | I prefer to use ` <limits> ` to check for an ` int ` until it is passed.
#include <iostream>
#include <limits> //std::numeric_limits
using std::cout, std::endl, std::cin;
int main() {
int num;
while(!(cin >> num)){ //check the Input format for integer the right way
... | |
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_13_0.txt | 3. Teams
4. Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams | |
C++_Ranges_library/C++_Ranges_library_103_2.txt | ew") (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::common ](/w/c... | |
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_52_0.txt |
template <typename T>
auto string_to( const std::string & s )
{
T value;
std::istringstream ss( s );
return ((ss >> value) and (ss >> std::ws).eof()) // attempt the conversion
? value // success
: std::optional<T> { }; ... | |
C++_Ranges_library/param-pack.html4_57_0.txt | Note how we take advantage of the fact that, as of C++17, lambdas are
implicitly ` constexpr ` when possible. Note also that C++20 requires most
string operations to be ` constexpr ` , in which case the above function could
be ` consteval ` rather than merely ` constexpr ` . Unfortunately, as of this
writing, ` constex... | |
C++_Ranges_library/C++_Ranges_library_150_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_31_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_140_29.txt | ormance | |
[ CoMeta ](https://github.com/kfrlib/cometa) | A lightweight C++14 metaprogramming library | | header-only
[ Meta ](https://github.com/ericniebler/meta) | Uses eager metafunctions, middle ground between metal and brigand wrt performance | |
[ Metal ](https://github.com/brunocodutra/metal) ... | |
C++_Ranges_library/C++_Ranges_library_36_0.txt | ##### [ cppreference.com ](/)
[ Log in
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Fborrowed+range
"You are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/cpp/ranges/borrowed_range "View the content page \[c\]")
* [ Discussion ](/mwiki/index.php?... | |
C++_Ranges_library/C++_Ranges_library_98_1.txt | iterator_t sentinel_t const_sentinel_t
](/w/cpp/ranges/iterator_t "cpp/ranges/iterator t") (C++23) (C++23)
---
| [ range_const_reference_t range_rvalue_reference_t
range_common_reference_t ](/w/cpp/ranges/iterator_t "cpp/ranges/iterator t")
(C++23)
---
| [ elements_of ](/w/cpp/ranges/element... | |
C++_Ranges_library/C++_Ranges_library_59_23.txt | /synopsis/ranges") ] Class std::ranges::elements_of
namespace std::ranges {
template<range R, class Allocator = allocator<byte>>
struct elements_of {
[[no_unique_address]] R range;
[[no_unique_address]] Allocator allocator = Allocator();
};
template<class R... | |
C++_Ranges_library/C++_Ranges_library_148_0.txt | ##### [ cppreference.com ](/)
[ Log in
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Fcontiguous+range
"You are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/cpp/ranges/contiguous_range "View the content page \[c\]")
* [ Discussion ](/mwiki/index.... | |
C++_Ranges_library/C++_Ranges_library_46_7.txt | ` | 201510L | [ ` <type_traits> ` ](/w/cpp/header/type_traits "cpp/header/type traits")
` __cpp_lib_make_from_tuple ` | 201606L | [ ` <tuple> ` ](/w/cpp/header/tuple "cpp/header/tuple")
` __cpp_lib_make_reverse_iterator ` | 201402L | [ ` <iterator> ` ](/w/cpp/header/iterator "cpp/header/iterator")
` __c... | |
C++_Ranges_library/what-will-be-the-output-of-the-following-c-code--5ab8a41bc56b6664bc9bacdd8_0_0.txt | Get Started
Exams SuperCoaching Test Series Skill Academy | |
C++_Ranges_library/C++_Ranges_library_9_6.txt | /subrange") (C++20) | combines an iterator-sentinel pair into a [ ` view ` ](/w/cpp/ranges/view "cpp/ranges/view")
(class template) [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/ranges/dsc_subrange&action=edit)
### [ [ edit ](/mwiki/index.php?title=cpp/ranges&action=edit§ion=... | |
C++_Ranges_library/C++_Ranges_library_10_10.txt | y/operator at") [ | ` operator[] `
--- ](/w/cpp/container/vector/operator_at "cpp/container/vector/operator at") [ | ` operator[] `
--- ](/w/cpp/container/deque/operator_at "cpp/container/deque/operator at") | | | | [ | ` operator[] `
--- ](/w/cpp/container/map/operator_at "cpp/container/map/operator at") ... | |
C++_Ranges_library/C++_Ranges_library_136_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_59_51.txt | const iterator<OtherConst>& x);
};
}
#### [ [ edit
](/mwiki/index.php?title=Template:cpp/synopsis/ranges&action=edit§ion=T-67
"Template:cpp/synopsis/ranges") ] Class template
std::ranges::zip_transform_view
namespace std::ranges {
template<move_constructible F, input_range... View... | |
C++_Ranges_library/C++_Ranges_library_156_1.txt | w/cpp/language/noexcept_spec
"cpp/language/noexcept spec") (C++11)
Exceptions
| [ ` throw ` -expression ](/w/cpp/language/throw "cpp/language/throw")
---
| [ ` try ` \- ` catch ` block ](/w/cpp/language/try_catch "cpp/language/try
catch")
---
Namespaces
| [ Namespace declaration ](/w/cpp/language... | |
C++_Ranges_library/C++_Ranges_library_64_23.txt | ](/w/cpp/memory/shared_ptr/make_shared "cpp/memory/shared ptr/make shared") | 201707L | [ ` <memory> ` ](/w/cpp/header/memory "cpp/header/memory") | (C++20) | [ P0674R1 ](https://wg21.link/P0674R1)
` __cpp_lib_shared_ptr_weak_type ` | [ ` shared_ptr::weak_type ` ](/w/cpp/memory/shared_ptr "cpp/memory/shared pt... | |
C++_Ranges_library/C++_Ranges_library_91_9.txt | of elements
(function template) [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/dsc_swap_ranges&action=edit)
[ ranges::swap_ranges ](/w/cpp/algorithm/ranges/swap_ranges "cpp/algorithm/ranges/swap ranges") (C++20) | swaps two ranges of elements
(niebloid) [ [edit]
](https... | |
C++_Ranges_library/C++_Ranges_library_59_33.txt | // exposition only
V base_ = V(); // exposition only
__movable_box<Pred> pred_; // exposition only
public:
take_while_view() requires default_initializable<V> &&
default_initializable<Pred> = default;
... | |
C++_Ranges_library/C++_Ranges_library_126_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/param-pack.html4_66_0.txt |
template<typename ...T> struct HList;
template<>
struct HList<> {
static constexpr std::size_t len = 0;
};
template<typename T0, typename ...TRest>
struct HList<T0, TRest...> : HList<TRest...> {
using head_type = T0;
using tail_type = HList<TRest...>;
... | |
C++_Ranges_library/param-pack.html4_63_0.txt | Note that you can use ` decltype ` on ` multilambda ` to do things concisely
that would previously have required auxiliary structs for partial
specialization. For example, hereâs a concept that checks whether a
particular type is an instance of a particular template or a reference to an
instance of that template:
... | |
C++_Ranges_library/C++_Ranges_library_96_5.txt | _is_member_object_pointer&action=edit)
[ is_member_function_pointer ](/w/cpp/types/is_member_function_pointer "cpp/types/is member function pointer") (C++11) | checks if a type is a pointer to a non-static member function
(class template) [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cp... | |
C++_Ranges_library/what-will-be-the-output-of-the-following-c-code--5ab8a41bc56b6664bc9bacdd8_9_0.txt | }
return 0; | |
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_78_0.txt | Follow
edited Sep 10, 2013 at 21:27 | |
C++_Ranges_library/C++_Ranges_library_141_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_74_3.txt | _t ](/w/cpp/ranges/iterator_t "cpp/ranges/iterator t")
(C++23)
---
| [ elements_of ](/w/cpp/ranges/elements_of "cpp/ranges/elements of")
(C++23)
---
[ Dangling iterator handling ](/w/cpp/ranges#Dangling_iterator_handling
"cpp/ranges")
| [ dangling ](/w/cpp/ranges/dangling "c... | |
C++_Ranges_library/C++_Ranges_library_8_3.txt | or* "cpp/ranges/slide
view/iterator/operator*")
[ slide_view:: _iterator_ ::operator[]
](/w/cpp/ranges/slide_view/iterator/operator_at "cpp/ranges/slide
view/iterator/operator at")
[ slide_view:: _iterator_ ::operator++
slide_view:: _iterator_ ::operator++ (int)
slide_view:: _iterator_ ::operator--
slide_vie... | |
C++_Ranges_library/C++_Ranges_library_127_1.txt | rable "cpp/utility/compare/three way
comparable") (C++20) (C++20)
[ strong_ordering ](/w/cpp/utility/compare/strong_ordering
"cpp/utility/compare/strong ordering") (C++20)
[ weak_ordering ](/w/cpp/utility/compare/weak_ordering
"cpp/utility/compare/weak ordering") (C++20)
[ partial_ordering ](/w/cpp/utility/co... | |
C++_Ranges_library/C++_Ranges_library_57_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_102_2.txt | it ](/w/cpp/ranges/lazy_split_view
"cpp/ranges/lazy split view")
[ split_view views::split ](/w/cpp/ranges/split_view "cpp/ranges/split
view")
[ views::counted ](/w/cpp/ranges/view_counted "cpp/ranges/view counted")
[ common_view views::common ](/w/cpp/ranges/common_view "cpp/ranges/common
view")
... | |
C++_Ranges_library/C++_Ranges_library_115_1.txt | +23)
---
| [ range_const_reference_t range_rvalue_reference_t
range_common_reference_t ](/w/cpp/ranges/iterator_t "cpp/ranges/iterator t")
(C++23)
---
| [ elements_of ](/w/cpp/ranges/elements_of "cpp/ranges/elements of")
(C++23)
---
[ Dangling iterator handling ](/w/cpp... | |
C++_Ranges_library/C++_Ranges_library_64_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_57_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_141_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_51_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/what-will-be-the-output-of-the-following-c-code--5ab8a41bc56b6664bc9bacdd8_12_0.txt | View all ISRO Scientist CS Papers >
1. 10 11 12 13 14
2. 10 10 10 10 10
3. 0 1 2 3 4
4. Compilation error | |
C++_Ranges_library/C++_Ranges_library_100_4.txt | ,
* [ std:: invocable ](http://en.cppreference.com/w/cpp/concepts/invocable) < const __rend_fn, Args... > ,
* [ std:: invocable ](http://en.cppreference.com/w/cpp/concepts/invocable) < __rend_fn & , Args... > , and
* [ std:: invocable ](http://en.cppreference.com/w/cpp/concepts/invocable) < const _... | |
C++_Ranges_library/C++_Ranges_library_100_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/rang... | |
C++_Ranges_library/C++_Ranges_library_126_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_111_6.txt | [std::quoted](http://en.cppreference.com/w/cpp/io/manip/quoted)(str) << '\n';
std::ranges::single_view<[std::tuple](http://en.cppreference.com/w/cpp/utility/tuple)<int, double, [std::string](http://en.cppreference.com/w/cpp/string/basic_string)>>
sv3{[std::in_place](http://en.cppreference.com/... | |
C++_Ranges_library/param-pack.html4_84_0.txt |
template<typename R = void, typename F>
inline constexpr R
with_constant(std::size_t n, F &&f)
{
switch (n) {
case 0:
return std::forward<F>(f)(0_const);
case 1:
return std::forward<F>(f)(1_const);
// ...
}
}
void
set_index(auto &v... | |
C++_Ranges_library/C++_Ranges_library_81_6.txt | delimiter{0};
constexpr std::ranges::lazy_split_view outer_view{source, delimiter};
[std::cout](http://en.cppreference.com/w/cpp/io/cout) << "splits[" << std::[ranges::distance](http://en.cppreference.com/w/cpp/iterator/ranges/distance)(outer_view) << "]: ";
for (auto const& inner_view: outer_... | |
C++_Ranges_library/C++_Ranges_library_59_19.txt |
namespace std::ranges {
template< class T >
concept range = requires(T& t) {
[ranges::begin](http://en.cppreference.com/w/cpp/ranges-ranges-placeholder/begin)(t); // equality-preserving for forward iterators
[ranges::end](http://en.cppreference.com/w/cpp/ranges-ranges-placeholder... | |
C++_Ranges_library/C++_Ranges_library_100_5.txt | iterator to a range
(customization point object) [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/ranges/dsc_rbegin&action=edit)
[ rend crend ](/w/cpp/iterator/rend "cpp/iterator/rend") (C++14) | returns a reverse end iterator for a container or array
(function template) [ [edit]
... | |
C++_Ranges_library/C++_Ranges_library_44_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_142_5.txt | ki/index.php?title=Template:cpp/ranges/adaptor/dsc_end&action=edit)
##### Inherited from [ std::ranges::view_interface
](/w/cpp/ranges/view_interface "cpp/ranges/view interface")
[ empty ](/w/cpp/ranges/view_interface/empty "cpp/ranges/view interface/empty") (C++20) | returns whether the derived view is ... | |
C++_Ranges_library/C++_Ranges_library_88_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/checking-cin-input-stream-produces-an-integer9_44_0.txt | Sep 10, 2013 at 21:14
* Seems I've been away from C++ for too long. | |
C++_Ranges_library/C++_Ranges_library_157_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_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.