id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
C++_Ranges_library/C++_Ranges_library_9_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_102_0.txt | answered Nov 24, 2016 at 1:27
Eduardo Floriani Eduardo Floriani | |
C++_Ranges_library/C++_Ranges_library_45_3.txt | ce.com/w/cpp/types/remove_reference)
< T >> is incomplete, then the call to ` ranges::rbegin ` is ill-formed, no
diagnostic required.
If the argument is an lvalue or [ ranges:: enable_borrowed_range
](http://en.cppreference.com/w/cpp/ranges/borrowed_range) < [ std::
remove_cv_t ](http://en.cppreference.com/w/cpp/t... | |
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_105_0.txt | Thanks for contributing an answer to Stack Overflow!
* Please be sure to answer the question . Provide details and share your research! | |
C++_Ranges_library/C++_Ranges_library_64_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_6_1.txt | ary ](/w/cpp/io "cpp/io")
* [ regular expressions library ](/w/cpp/regex "cpp/regex")
| (since C++11)
---|---
In the strings library and regular expressions library (since C++11) ,
characters can only be of _char-like types_ , which can be any non-array [
POD type ](/w/cpp/named_req/PODType "cpp/named r... | |
C++_Ranges_library/C++_Ranges_library_110_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_29_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_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_73_36.txt | or/end)(cxx11_core), add);
if (print.cxx98) [std::for_each](http://en.cppreference.com/w/cpp/algorithm/for_each)([std::begin](http://en.cppreference.com/w/cpp/iterator/begin)(cxx98_core), [std::end](http://en.cppreference.com/w/cpp/iterator/end)(cxx98_core), add);
[std::snprintf](http://en.cppre... | |
C++_Ranges_library/C++_Ranges_library_142_0.txt | ##### [ cppreference.com ](/)
[ Log in
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Fjoin+with+view
"You are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/cpp/ranges/join_with_view "View the content page \[c\]")
* [ Discussion ](/mwiki/index.php?... | |
C++_Ranges_library/C++_Ranges_library_56_17.txt | p/numeric/random/gamma_distribution
"cpp/numeric/random/gamma distribution") <> (since C++11)
[ ` gcd<>() ` ](/w/cpp/numeric/gcd "cpp/numeric/gcd") (since C++17)
[ ` generate<>() ` ](/w/cpp/algorithm/generate "cpp/algorithm/generate")
[ ` generate_canonical ` ](/w/cpp/numeric/random/generate_canonical
"cpp/numeri... | |
C++_Ranges_library/C++_Ranges_library_141_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_12_0.txt | Ask questions, find answers and collaborate at work with Stack Overflow for
Teams.
Explore Teams Create a free Team | |
C++_Ranges_library/C++_Ranges_library_136_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_144_1.txt |
| [ 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/ranges/iterator_t "cpp/ranges/iterator t")
(C++23)
---
| [ elements_of ... | |
C++_Ranges_library/C++_Ranges_library_67_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/checking-cin-input-stream-produces-an-integer9_93_0.txt | Under C++11 and later, I have the found the std::stoi function very useful
for this task. stoi throws an invalid_argument exception if conversion cannot
be performed. This can be caught and handled as shown in the demo function
'getIntegerValue' below.
The stoi function has a second parameter 'idx' that indicates th... | |
C++_Ranges_library/C++_Ranges_library_19_0.txt | ##### [ cppreference.com ](/)
[ Create account
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Ftypes%2Fis+pointer%29&type=signup)
* [ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Ftypes%2Fis+pointer%29 "You are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespac... | |
C++_Ranges_library/C++_Ranges_library_37_4.txt | e=Template:cpp/ranges/adaptor/dsc_base&action=edit)
[ pred ](/w/cpp/ranges/drop_while_view/pred "cpp/ranges/drop 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&act... | |
C++_Ranges_library/C++_Ranges_library_26_1.txt | ---
| [ 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/ranges/iterator_t "cpp/ranges/iterator t")
(C++23)
---
| [ elem... | |
C++_Ranges_library/C++_Ranges_library_29_8.txt | set> ` ](/w/cpp/header/unordered_set "cpp/header/unordered set") | (C++26) | [ P2363R5 ](https://wg21.link/P2363R5)
` __cpp_lib_assume_aligned ` | [ std::assume_aligned ](/w/cpp/memory/assume_aligned "cpp/memory/assume aligned") | 201811L | [ ` <memory> ` ](/w/cpp/header/memory "cpp/header/memory") | (C++20) ... | |
C++_Ranges_library/what-will-be-the-output-of-the-following-c-code--5ab8a41bc56b6664bc9bacdd8_36_0.txt | Q5. In context of C++, consider following loop-statement: while (5) {cout
<<"Hello";} Hello will be displayed __________ time(s) by the above loop.
Q6. Consider the following C program #include <stdio.h> main() { float sum =
0.0; j = 1.0, i = 2.0; while ( i/j > 0.001 ) { j = j + 1; sum = sum + i/j ;
printf ( “%f\n”,... | |
C++_Ranges_library/C++_Ranges_library_120_2.txt | 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::reverse ](/w/cpp/ran... | |
C++_Ranges_library/C++_Ranges_library_25_4.txt | zation of [ ranges:: subrange ](http://en.cppreference.com/w/cpp/ranges/subrange) ;
* [ ranges:: iota_view ](http://en.cppreference.com/w/cpp/ranges/iota_view) ( * [ ranges:: begin ](http://en.cppreference.com/w/cpp/ranges-ranges-placeholder/begin) ( e ) ,
* ( [ ranges:: begin ](http://en.cppref... | |
C++_Ranges_library/C++_Ranges_library_151_3.txt | stride_view:: _iterator_ :: _iterator_
](/w/cpp/ranges/stride_view/iterator/iterator "cpp/ranges/stride
view/iterator/iterator")
[ stride_view:: _iterator_ ::base ](/w/cpp/ranges/stride_view/iterator/base
"cpp/ranges/stride view/iterator/base")
[ stride_view:: _iterator_ ::operator*
](/w/cpp/ranges/stride_view/ite... | |
C++_Ranges_library/C++_Ranges_library_38_5.txt | e < class T >
inline constexpr bool enable_borrowed_range < std :: ranges ::
common_view < T >> =
std :: [ ranges:: enable_borrowed_range ](http://en.cppreference.com/w/cpp/ranges/borrowed_range) < T > ; | | (since C++20)
---|---|---
| |
This specialization of [ ` std::ranges::enable... | |
C++_Ranges_library/C++_Ranges_library_99_6.txt | abels at the end of compound statements | [ P2324R2 ](https://wg21.link/P2324R2) | 13 | 16 | | | 6.5 | 2023.2 | | | | | | | |
[ Delimited escape sequences ](/w/cpp/language/escape "cpp/language/escape") | [ P2290R3 ](https://wg21.link/P2290R3) | 13 | 15 | | 15.0.0* | | 2023.2 | | | |... | |
C++_Ranges_library/C++_Ranges_library_21_3.txt | MoveConstructible ](/w/cpp/named_req/MoveConstructible "cpp/named req/MoveConstructible") (C++11) | specifies that an object of the type can be constructed from rvalue
(named requirement)
[ CopyConstructible ](/w/cpp/named_req/CopyConstructible "cpp/named req/CopyConstructible") | specifies that an object of ... | |
C++_Ranges_library/param-pack.html4_60_0.txt | Fortunately, C++20 lets us use lambdas in unevaluated contexts, which means
that instead of defining helper types, you can often use a lambda expression
inside of ` decltype ` to achieve what you want. In this case, we can produce
an entirely self-contained definition of ` tuple_ptrs ` as follows:
templa... | |
C++_Ranges_library/C++_Ranges_library_73_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/checking-cin-input-stream-produces-an-integer9_97_0.txt | Chirag Chirag
11 3 3 bronze badges | |
C++_Ranges_library/C++_Ranges_library_59_45.txt | nges::begin](http://en.cppreference.com/w/cpp/ranges-ranges-placeholder/begin)(base_)); }
constexpr auto begin() const requires range<const V>
{ return iterator<true>([ranges::begin](http://en.cppreference.com/w/cpp/ranges-ranges-placeholder/begin)(base_)); }
constexpr auto end() req... | |
C++_Ranges_library/C++_Ranges_library_136_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_149_0.txt | ##### [ cppreference.com ](/)
[ Log in
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Fview+interface
"You are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/cpp/ranges/view_interface "View the content page \[c\]")
* [ Discussion ](/mwiki/index.php?... | |
C++_Ranges_library/what-will-be-the-output-of-the-following-c-code--5ab8a41bc56b6664bc9bacdd8_46_0.txt | 22 Total Tests with 1 Free Tests
Start Free Test | |
C++_Ranges_library/C++_Ranges_library_150_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_91_4.txt | * 5 Sorting and related operations
* 5.1 Requirements
* 5.2 Partitioning operations
* 5.3 Sorting operations
* 5.4 Binary search operations (on partitioned ranges)
* 5.5 Set operations (on sorted ranges)
* 5.6 Merge operations (on sorted ranges)
* 5.7 Heap operations
* ... | |
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_67_0.txt | Sep 10, 2013 at 21:15
* Because istream will fail at inserting into an integer if you supply a character, so your variable will have whatever data in it that was there before. | |
C++_Ranges_library/C++_Ranges_library_7_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/what-will-be-the-output-of-the-following-c-code--5ab8a41bc56b6664bc9bacdd8_44_0.txt | Q10. What is the output of following code? main ( ) {static float a [ ] =
{13.24, 1.5, 4.5, 5.4, 3.5} float *j, *k; j = a; k = a + 4 j = j * 2; k = k/2;
printf("% f% f', *j, *k): }
Suggested Test Series | |
C++_Ranges_library/C++_Ranges_library_56_29.txt | ince C++20)
[ ` malloc() ` ](/w/cpp/memory/c/malloc "cpp/memory/c/malloc")
[ ` map ` ](/w/cpp/container/map "cpp/container/map") <>
[ ` mask_array ` ](/w/cpp/numeric/valarray/mask_array
"cpp/numeric/valarray/mask array") <>
[ ` match_results ` ](/w/cpp/regex/match_results "cpp/regex/match results") <>
(since C+... | |
C++_Ranges_library/C++_Ranges_library_61_0.txt | ##### [ cppreference.com ](/)
[ Log in
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Frange "You
are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/cpp/ranges/range "View the content page \[c\]")
* [ Discussion ](/mwiki/index.php?title=Talk:cpp/ran... | |
C++_Ranges_library/C++_Ranges_library_141_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_158_0.txt | ##### [ cppreference.com ](/)
[ Log in
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Fssize "You
are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/cpp/ranges/ssize "View the content page \[c\]")
* [ Discussion ](/w/Talk:cpp/ranges/ssize "Discussio... | |
C++_Ranges_library/C++_Ranges_library_111_4.txt | e element
(public member function)
[ size ](/w/cpp/ranges/single_view#size "cpp/ranges/single view") [static] (C++20) | returns 1 (one)
(public static member function)
[ data ](/w/cpp/ranges/single_view#data "cpp/ranges/single view") (C++20) | returns a pointer to the element
(public member function... | |
C++_Ranges_library/C++_Ranges_library_10_25.txt | rator cmp") [ | ` operator< `
--- ](/w/cpp/container/deque/operator_cmp "cpp/container/deque/operator cmp") [ | ` operator< `
--- ](/w/cpp/container/forward_list/operator_cmp "cpp/container/forward list/operator cmp") [ | ` operator< `
--- ](/w/cpp/container/list/operator_cmp "cpp/container/list/operator cmp")... | |
C++_Ranges_library/C++_Ranges_library_14_6.txt | f16&action=edit)
[ codecvt_mode ](/w/cpp/locale/codecvt_mode "cpp/locale/codecvt mode") (C++11) (deprecated in C++17) (removed in C++26) | tags to alter behavior of the standard codecvt facets
(enum) [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/locale/dsc_codecvt_mode&action=edit... | |
C++_Ranges_library/C++_Ranges_library_78_11.txt |
otherwise specified
[ LWG 336 ](https://cplusplus.github.io/LWG/issue336) | C++98 | [ ` <strstream> ` ](/w/cpp/header/strstream "cpp/header/strstream") was not a C++ library header | it is a C++ library header
[ LWG 343 ](https://cplusplus.github.io/LWG/issue343) | C++98 | library header dependencies w... | |
C++_Ranges_library/C++_Ranges_library_32_18.txt | T&& t) {
*i++ = [std::forward](http://en.cppreference.com/w/cpp/utility/forward)<T>(t); // not required to be equality-preserving
};
}
#### [ [ edit
](/mwiki/index.php?title=Template:cpp/synopsis/iterator&action=edit§ion=T-10
"Template:cpp/synopsis/iterator") ] Concept [ ` forward_iter... | |
C++_Ranges_library/C++_Ranges_library_109_30.txt | que_object_representations)
COMPILER_FEATURE_ENTRY(201603L, __cpp_lib_hypot)
COMPILER_FEATURE_ENTRY(201505L, __cpp_lib_incomplete_container_elements)
COMPILER_FEATURE_ENTRY(201411L, __cpp_lib_invoke)
COMPILER_FEATURE_ENTRY(201703L, __cpp_lib_is_aggregate)
COMPILER_FEATURE_ENTRY(2... | |
C++_Ranges_library/C++_Ranges_library_56_15.txt | ystem") (since C++17)
[ ` fill<>() ` ](/w/cpp/algorithm/fill "cpp/algorithm/fill")
[ ` fill_n<>() ` ](/w/cpp/algorithm/fill_n "cpp/algorithm/fill n")
[ ` find<>() ` ](/w/cpp/algorithm/find "cpp/algorithm/find")
[ ` find_end<>() ` ](/w/cpp/algorithm/find_end "cpp/algorithm/find end")
[ ` find_first_of<>() ` ](... | |
C++_Ranges_library/C++_Ranges_library_32_12.txt | = requires { typename /*with-reference*/<T>; };
template<class T> concept /*dereferenceable*/ // exposition only
= requires(T& t) {
{ *t } -> /*can-reference*/; // not required to be equality-preserving
};
// associated types
// incrementable traits
template... | |
C++_Ranges_library/what-will-be-the-output-of-the-following-c-code--5ab8a41bc56b6664bc9bacdd8_50_0.txt | Q1. What is the output of the following program? #include <stdio.h > # define
SQR(x) (x*x) int main() { int a, b = 3; a=SQR(b+2); printf("%d",a); return 0;
}
Q2. Given below are two statements: Statement (I): The friend function and
the member functions of a friend class directly access the private and
protected dat... | |
C++_Ranges_library/C++_Ranges_library_84_7.txt | overload
for (auto s : std::views::repeat("I know that you know that"sv)
| std::[views::take](http://en.cppreference.com/w/cpp/ranges/take_view)(3))
[std::cout](http://en.cppreference.com/w/cpp/io/cout) << s << ' ';
[std::cout](http://en.cppreference.com/w/cpp/io/cout) <<... | |
C++_Ranges_library/C++_Ranges_library_57_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_101_2.txt | nges/join_view "cpp/ranges/join view")
[ join_with_view views::join_with ](/w/cpp/ranges/join_with_view
"cpp/ranges/join with view") (C++23) (C++23)
[ lazy_split_view views::lazy_split ](/w/cpp/ranges/lazy_split_view
"cpp/ranges/lazy split view")
[ split_view views::split ](/w/cpp/ranges/split_view "cpp/ra... | |
C++_Ranges_library/C++_Ranges_library_140_2.txt | e
[ ni-media ](https://github.com/NativeInstruments/ni-media) | C++ library for reading and writing audio files. | MIT | cmake, vcpkg
[ OpenAL ](http://www.openal.org/) | A cross-platform audio API. | BSD/LGPL/Proprietary | cmake
[ PortAudio ](http://www.portaudio.com/) | PortAudio is a free, cross-... | |
C++_Ranges_library/C++_Ranges_library_127_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/C++_Ranges_library_153_36.txt | or/end)(cxx11_core), add);
if (print.cxx98) [std::for_each](http://en.cppreference.com/w/cpp/algorithm/for_each)([std::begin](http://en.cppreference.com/w/cpp/iterator/begin)(cxx98_core), [std::end](http://en.cppreference.com/w/cpp/iterator/end)(cxx98_core), add);
[std::snprintf](http://en.cppre... | |
C++_Ranges_library/C++_Ranges_library_81_3.txt | view/value
type")
[ lazy_split_view:: _inner_iterator_
](/w/cpp/ranges/lazy_split_view/inner_iterator "cpp/ranges/lazy split
view/inner iterator")
[ Deduction guides ](/w/cpp/ranges/lazy_split_view/deduction_guides
"cpp/ranges/lazy split view/deduction guides")
[ [edit]
](https://en.cppreference.com/mwiki/ind... | |
C++_Ranges_library/C++_Ranges_library_59_1.txt | /w/cpp/header/concepts "cpp/header/concepts") (C++20)
Diagnostics
| [ ` <stdexcept> ` ](/w/cpp/header/stdexcept "cpp/header/stdexcept")
---
[ ` <stacktrace> ` ](/w/cpp/header/stacktrace "cpp/header/stacktrace") (C++23)
| [ ` <cassert> ` ](/w/cpp/header/cassert "cpp/header/cassert")
---
| [ ... | |
C++_Ranges_library/C++_Ranges_library_158_5.txt | ighlighter/) [  ](http://www.tigertech.net/referral/cppreference.com)
| |
C++_Ranges_library/C++_Ranges_library_141_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_112_9.txt | tring converters ](/w/cpp/string/byte#Conversions_to_numeric_formats
"cpp/string/byte") , the header [ ` <charconv> ` ](/w/cpp/header/charconv
"cpp/header/charconv") provides light-weight, locale-independent, non-
allocating, non-throwing parsers and formatters for arithmetic types.
Defined in header ` [ <charconv> ](... | |
C++_Ranges_library/C++_Ranges_library_64_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_127_0.txt | ##### [ cppreference.com ](/)
[ Create account
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Futility&type=signup)
* [ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Futility "You are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/cpp/util... | |
C++_Ranges_library/param-pack.html4_89_0.txt | Unfortunately, effective use of variadic templates still involves some
unwieldy idioms, in large part because of the asymmetry between expanding
patterns (which works in many contexts) and capturing parameter packs (which
often requires introducing otherwise unnecessary lambda expressions). If C++
adopts parameter pac... | |
C++_Ranges_library/C++_Ranges_library_3_24.txt | 21.link/P1227R2)
` __cpp_lib_sstream_ from_string_view ` | Interfacing [ std::stringstream ](/w/cpp/io/basic_stringstream "cpp/io/basic stringstream") s with [ std::string_view ](/w/cpp/string/basic_string_view "cpp/string/basic string view") | 202306L | [ ` <sstream> ` ](/w/cpp/header/sstream "cpp/header/sstr... | |
C++_Ranges_library/C++_Ranges_library_14_1.txt | punct ](/w/cpp/locale/numpunct "cpp/locale/numpunct")
---
[ numpunct_byname ](/w/cpp/locale/numpunct_byname "cpp/locale/numpunct
byname")
[ collate facets ](/w/cpp/locale#collate_facets "cpp/locale")
| [ collate ](/w/cpp/locale/collate "cpp/locale/collate")
---
| [ collate_byname ](/w/cpp/locale... | |
C++_Ranges_library/C++_Ranges_library_108_7.txt | table=yes "Printable version of this page \[p\]")
* [ Permanent link ](/mwiki/index.php?title=cpp/ranges/chunk_by_view&oldid=160898 "Permanent link to this revision of the page")
* [ Page information ](/mwiki/index.php?title=cpp/ranges/chunk_by_view&action=info)
* In other languages
* [ Deutsch ](http://de.c... | |
C++_Ranges_library/C++_Ranges_library_73_31.txt | 01907L, __cpp_lib_barrier)
COMPILER_FEATURE_ENTRY(201907L, __cpp_lib_bind_front)
COMPILER_FEATURE_ENTRY(201806L, __cpp_lib_bit_cast)
COMPILER_FEATURE_ENTRY(201907L, __cpp_lib_bitops)
COMPILER_FEATURE_ENTRY(201902L, __cpp_lib_bounded_array_traits)
COMPILER_FEATURE_ENTRY(201907L, _... | |
C++_Ranges_library/C++_Ranges_library_64_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_12_1.txt | el_t const_sentinel_t
](/w/cpp/ranges/iterator_t "cpp/ranges/iterator t") (C++23) (C++23)
---
| [ range_const_reference_t range_rvalue_reference_t
range_common_reference_t ](/w/cpp/ranges/iterator_t "cpp/ranges/iterator t")
(C++23)
---
| [ elements_of ](/w/cpp/ranges/elements_of "cpp/ranges/e... | |
C++_Ranges_library/C++_Ranges_library_53_8.txt | r
Retrieved from " [
https://en.cppreference.com/mwiki/index.php?title=cpp/ranges/to&oldid=170808
](https://en.cppreference.com/mwiki/index.php?title=cpp/ranges/to&oldid=170808)
"
##### Navigation
* [ Support us ](http://www.cppreference.com/support)
* [ Recent changes ](/w/Special:RecentChanges "A list of ... | |
C++_Ranges_library/C++_Ranges_library_87_0.txt | ##### [ cppreference.com ](/)
[ Create account
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges-ranges-
placeholder%2Fiterator+t%29&type=signup)
* [ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges-ranges-placeholder%2Fiterator+t%29 "You are encouraged to log in; however, it ... | |
C++_Ranges_library/C++_Ranges_library_5_5.txt | ar_t >
Defined in header ` [ <syncstream> ](/w/cpp/header/syncstream
"cpp/header/syncstream") `
std::syncbuf (C++20) | [ std:: basic_syncbuf ](http://en.cppreference.com/w/cpp/io/basic_syncbuf) < char >
std::wsyncbuf (C++20) | [ std:: basic_syncbuf ](http://en.cppreference.com/w/cpp/io/basic_syncbuf) ... | |
C++_Ranges_library/C++_Ranges_library_151_5.txt | /en.cppreference.com/mwiki/index.php?title=Template:cpp/ranges/view_interface/dsc_empty&action=edit)
[ 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>... | |
C++_Ranges_library/C++_Ranges_library_157_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_41_0.txt | ##### [ cppreference.com ](/)
[ Log in
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Fsize "You
are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/cpp/ranges/size "View the content page \[c\]")
* [ Discussion ](/mwiki/index.php?title=Talk:cpp/range... | |
C++_Ranges_library/C++_Ranges_library_80_0.txt | ##### [ cppreference.com ](/)
[ Log in
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Fiota+view
"You are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/cpp/ranges/iota_view "View the content page \[c\]")
* [ Discussion ](/mwiki/index.php?title=Talk... | |
C++_Ranges_library/C++_Ranges_library_10_28.txt | ed map") [ | ` **unordered_multimap** `
--- ](/w/cpp/container/unordered_multimap "cpp/container/unordered multimap") [ | ` **stack** `
--- ](/w/cpp/container/stack "cpp/container/stack") [ | ` **queue** `
--- ](/w/cpp/container/queue "cpp/container/queue") [ | ` **priority_queue** `
--- ](/w/cpp/container/... | |
C++_Ranges_library/C++_Ranges_library_44_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/param-pack.html4_87_0.txt |
template<is_template<std::variant> T>
void
set_index(T &t, std::size_t n)
{
/* ... */
}
Finally, note the importance of our lambda in ` set_index ` accepting the
parameter by value ( ` auto i ` ) and not by reference ( ` auto &&i ` or `
const auto &i ` ). Because of some quirkine... | |
C++_Ranges_library/C++_Ranges_library_140_27.txt | te library for linear algebra: matrices, vectors, numerical solvers, and related algorithms. | MPL2 | cmake, conan
[ ETL ](https://github.com/wichtounet/etl) | | |
[ IT++ ](http://sourceforge.net/projects/itpp/) | | |
[ Matrix ](https://github.com/mlcpp/Matrix) | Easy-to-use Scientific Computing libra... | |
C++_Ranges_library/C++_Ranges_library_113_4.txt | aterialized
temporary object. All implementations directly return the prvalue instead. The
requirement is corrected by the post-C++20 proposal [ P0849R8
](https://wg21.link/P0849R8) to match the implementations.
### [ [ edit ](/mwiki/index.php?title=cpp/ranges/data&action=edit§ion=2
"Edit section: Example") ] Ex... | |
C++_Ranges_library/C++_Ranges_library_64_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_126_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_79_0.txt | ##### [ cppreference.com ](/)
[ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Ffilesystem
"You are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/cpp/filesystem "View the content page \[c\]")
* [ Discussion ](/mwiki/index.php?title=Talk:cpp/filesyste... | |
C++_Ranges_library/C++_Ranges_library_126_24.txt | 21.link/P1227R2)
` __cpp_lib_sstream_ from_string_view ` | Interfacing [ std::stringstream ](/w/cpp/io/basic_stringstream "cpp/io/basic stringstream") s with [ std::string_view ](/w/cpp/string/basic_string_view "cpp/string/basic string view") | 202306L | [ ` <sstream> ` ](/w/cpp/header/sstream "cpp/header/sstr... | |
C++_Ranges_library/C++_Ranges_library_122_1.txt | eric/div_sat "cpp/numeric/div sat") (C++26)
[ Generic numeric operations ](/w/cpp/numeric#Numeric_operations
"cpp/numeric")
| [ iota ](/w/cpp/algorithm/iota "cpp/algorithm/iota") (C++11)
---
[ ranges::iota ](/w/cpp/algorithm/ranges/iota "cpp/algorithm/ranges/iota")
(C++23)
[ accumulate ](/w/cpp/a... | |
C++_Ranges_library/C++_Ranges_library_134_2.txt | it_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
"cpp/ran... | |
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_15_0.txt | Learn more about Collectives
Teams | |
C++_Ranges_library/C++_Ranges_library_150_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_10_27.txt | rdered multimap/swap") [ | ` swap `
--- ](/w/cpp/container/stack/swap "cpp/container/stack/swap") [ | ` swap `
--- ](/w/cpp/container/queue/swap "cpp/container/queue/swap") [ | ` swap `
--- ](/w/cpp/container/priority_queue/swap "cpp/container/priority queue/swap") [ | ` swap `
--- ](/w/cpp/container/flat_s... | |
C++_Ranges_library/C++_Ranges_library_70_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_5_7.txt | io/basic_ostream/dsc_print&action=edit)
[ println (std::ostream) ](/w/cpp/io/basic_ostream/println "cpp/io/basic ostream/println") (C++23) | outputs [ formatted ](/w/cpp/utility/format "cpp/utility/format") representation of the arguments with appended ' \n '
(function template) [ [edit]
](https://en.cppr... | |
C++_Ranges_library/C++_Ranges_library_78_6.txt | me_s ` ](/w/c/chrono/asctime "c/chrono/asctime") | [ ` memcpy_s ` ](/w/c/string/byte/memcpy "c/string/byte/memcpy") | [ ` strncpy_s ` ](/w/c/string/byte/strncpy "c/string/byte/strncpy") | [ ` vwprintf_s ` ](/w/c/io/vfwprintf "c/io/vfwprintf")
[ ` bsearch_s ` ](/w/c/algorithm/bsearch "c/algorithm/bsearch") | [ ` m... | |
C++_Ranges_library/C++_Ranges_library_44_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_70_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 ..... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.