id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
C++_Ranges_library/C++_Ranges_library_29_7.txt | 3) | [ P0401R6 ](https://wg21.link/P0401R6)
[ P2652R2 ](https://wg21.link/P2652R2)
[ LWG3887 ](https://wg21.link/LWG3887)
` __cpp_lib_allocator_ traits_is_always_equal ` | [ ` std::allocator_traits::is_always_equal ` ](/w/cpp/memory/allocator_traits "cpp/memory/allocator traits") | 201411L | [ ` <memory> ... | |
C++_Ranges_library/C++_Ranges_library_111_0.txt | ##### [ cppreference.com ](/)
[ Log in
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Fsingle+view
"You are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/cpp/ranges/single_view "View the content page \[c\]")
* [ Discussion ](/mwiki/index.php?title=... | |
C++_Ranges_library/param-pack.html4_14_0.txt | Note how in these these cases, the ellipsis plays double-duty, serving at once
to expand one parameter pack and capture another. The ` ... ` must always
immediately precede the identifier of the captured parameter pack. This means
the ellipsis falls in the middle of the pattern for arrays and function types,
rather tha... | |
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_32_0.txt | Add a comment |
## 8 Answers 8 | |
C++_Ranges_library/C++_Ranges_library_90_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_91_11.txt | thm
"cpp/header/algorithm") `
---
[ reverse ](/w/cpp/algorithm/reverse "cpp/algorithm/reverse") | reverses the order of elements in a range
(function template) [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/dsc_reverse&action=edit)
[ ranges::reverse ](/w/cpp/algorithm/r... | |
C++_Ranges_library/C++_Ranges_library_74_5.txt | promise_type/final_suspend
"cpp/coroutine/generator/promise type/final suspend")
[ generator::promise_type::yield_value
](/w/cpp/coroutine/generator/promise_type/yield_value
"cpp/coroutine/generator/promise type/yield value")
[ generator::promise_type::return_void
](/w/cpp/coroutine/generator/promise_type/return_vo... | |
C++_Ranges_library/C++_Ranges_library_140_21.txt | e-of-charge for non-commercial purposes only) | cmake
## [ [ edit ](/mwiki/index.php?title=cpp/links/libs&action=edit§ion=21
"Edit section: Graphics \(3D\)") ] Graphics (3D)
Library | Description | License | Configuration
---|---|---|---
[ assimp ](http://assimp.sourceforge.net/) | 3D model l... | |
C++_Ranges_library/C++_Ranges_library_3_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/param-pack.html4_9_0.txt | * In line 7, ` tuple<C...> ` expands the pack ` C ` in a template-argument-list , while ` tpl(c...) ` expands ` c ` in an initializer-list (which, not to be confused with ` std::initializer_list ` , is the term in the C++ grammar for comma-separated lists of expressions passed as arguments to function calls and c... | |
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_104_0.txt | ## Your Answer
Reminder: Answers generated by artificial intelligence tools are not allowed
on Stack Overflow. Learn more | |
C++_Ranges_library/accumulate4_22_0.txt | * What links here
* Related changes
* Upload file
* Special pages
* Printable version
* Permanent link
* Page information
* In other languages | |
C++_Ranges_library/C++_Ranges_library_3_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_128_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_63_4.txt | view interface/operator bool") (C++20) | returns whether the derived view is not empty. Provided if [ ranges::empty ](/w/cpp/ranges/empty "cpp/ranges/empty") is applicable to it.
(public member function of ` std::ranges::view_interface<D> ` ) [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:... | |
C++_Ranges_library/C++_Ranges_library_129_3.txt | ator#assign "cpp/ranges/basic istream
view/iterator")
[ basic_istream_view:: _iterator_ ::operator++
](/w/cpp/ranges/basic_istream_view/iterator#increment "cpp/ranges/basic
istream view/iterator")
[ basic_istream_view:: _iterator_ ::operator*
](/w/cpp/ranges/basic_istream_view/iterator#dereference "cpp/ranges/basic... | |
C++_Ranges_library/C++_Ranges_library_28_4.txt | |---|---
[ LWG 3563 ](https://cplusplus.github.io/LWG/issue3563) | C++20 | ` keys_view ` is unable to participate in CTAD due to its use of views::all_t | views::all_t removed
### [ [ edit
](/mwiki/index.php?title=cpp/ranges/keys_view&action=edit§ion=4 "Edit
section: See also") ] See also
[ ranges... | |
C++_Ranges_library/C++_Ranges_library_90_0.txt | ##### [ cppreference.com ](/)
[ Log in
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Fview+counted
"You are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/cpp/ranges/view_counted "View the content page \[c\]")
* [ Discussion ](/w/Talk:cpp/ranges/vi... | |
C++_Ranges_library/C++_Ranges_library_51_9.txt | ](/w/cpp/ranges/adjacent_view "cpp/ranges/adjacent view") (C++23) | a [ ` view ` ](/w/cpp/ranges/view "cpp/ranges/view") consisting of tuples of references to adjacent elements of the adapted view
(class template) (range adaptor object) [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/r... | |
C++_Ranges_library/C++_Ranges_library_69_3.txt | td::ranges::ref_view:: empty
* 8 std::ranges::ref_view:: size
* 9 std::ranges::ref_view:: data
* 9.1 Deduction guides
* 9.2 Helper templates
* 9.3 Example
* 9.4 Defect reports
* 9.5 See also
---
### [ [ edit
](/mwiki/index.php?title=cpp/ranges/ref_view&action=edit&sec... | |
C++_Ranges_library/C++_Ranges_library_146_7.txt | lass template) (range adaptor object) [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/ranges/dsc_adjacent_transform_view&action=edit)
Retrieved from " [
https://en.cppreference.com/mwiki/index.php?title=cpp/ranges/copyable_wrapper&oldid=155687
](https://en.cppreference.com/mwiki/index.p... | |
C++_Ranges_library/C++_Ranges_library_126_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/checking-cin-input-stream-produces-an-integer9_95_0.txt | Share
Improve this answer | |
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_18_0.txt | Learn more about Labs
# Checking cin input stream produces an integer | |
C++_Ranges_library/C++_Ranges_library_141_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_34_3.txt | itability
* 2.2 Dereferenceability and validity
* 2.3 Ranges
* 2.3.1 Iterator-sentinel range
* 2.3.2 Counted range
* 3 Iterator concepts (since C++20)
* 4 Iterator associated types
* 5 Iterator primitives
* 6 Iterator customization points
* 7 Algorithm concepts and utili... | |
C++_Ranges_library/C++_Ranges_library_91_24.txt | laimer")
* [  ](//www.mediawiki.org/) [  ](http://qbnz.com/highlighter/) [ 
` __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_70_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_110_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/checking-cin-input-stream-produces-an-integer9_64_0.txt | answered Sep 10, 2013 at 21:09
nook nook | |
C++_Ranges_library/C++_Ranges_library_7_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_106_3.txt | Run this code
#include <forward_list>
#include <list>
#include <ranges>
#include <set>
#include <unordered_set>
int main()
{
static_assert(
std::ranges::bidirectional_range<[std::set](http://en.cppreference.com/w/cpp/container/set)<int>> and
... | |
C++_Ranges_library/C++_Ranges_library_56_46.txt | since C++11)
[ ` wssub_match ` ](/w/cpp/regex/sub_match "cpp/regex/sub match") (since
C++11)
[ ` wstring ` ](/w/cpp/string/basic_string "cpp/string/basic string")
[ ` wstring_convert ` ](/w/cpp/locale/wstring_convert "cpp/locale/wstring
convert") <> (since C++11) (deprecated in C++17)
[ ` wstring_view ` ](/w/c... | |
C++_Ranges_library/C++_Ranges_library_15_5.txt | com/w/cpp/ranges/begin "cpp/ranges/begin")
* [ 日本語 ](http://ja.cppreference.com/w/cpp/ranges/begin "cpp/ranges/begin")
* [ Русский ](http://ru.cppreference.com/w/cpp/ranges/begin "cpp/ranges/begin")
* [ 中文 ](http://zh.cppreference.com/w/cpp/ranges/begin "cpp/ranges/begin")
* This page was last modified on 8 Se... | |
C++_Ranges_library/C++_Ranges_library_73_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/param-pack.html4_86_0.txt | Next, note that we supply the number of possible values, ` N ` , as the first
template argument to ` with_n ` , and this argument is mandatory. By using `
std::array::at ` , we ensure that an exception will be thrown for out-of-
bounds values of ` n ` . Note also that if we want to use ` with_n ` with a
return type ot... | |
C++_Ranges_library/C++_Ranges_library_71_1.txt | or_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/ranges/iterator_t "cpp/ranges/iterator t")
(C... | |
C++_Ranges_library/C++_Ranges_library_31_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_106_4.txt | referral/cppreference.com)
| |
C++_Ranges_library/C++_Ranges_library_117_7.txt | (range adaptor object) [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/ranges/dsc_chunk_view&action=edit)
[ ranges::stride_view views::stride ](/w/cpp/ranges/stride_view "cpp/ranges/stride view") (C++23) | a [ ` view ` ](/w/cpp/ranges/view "cpp/ranges/view") consisting of elements of ... | |
C++_Ranges_library/C++_Ranges_library_11_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_59_65.txt | stSent, class First, class... Vs>
concept __cartesian_is_sized_sentinel = // exposition only
(sized_sentinel_for<FirstSent<__maybe_const<Const, First>>,
iterator_t<__maybe_const<Const, First>>> && ...
&& (sized_range<__maybe_const<Const, Vs>>
&& si... | |
C++_Ranges_library/C++_Ranges_library_95_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_29_15.txt | | Freestanding std::mdspan | 202311L | [ ` <mdspan> ` ](/w/cpp/header/mdspan "cpp/header/mdspan") | (C++26) | [ P2833R2 ](https://wg21.link/P2833R2)
` __cpp_lib_freestanding_memory ` | Freestanding facilities in [ ` <memory> ` ](/w/cpp/header/memory "cpp/header/memory") | 202306L | [ ` <memory> ` ](/w/c... | |
C++_Ranges_library/C++_Ranges_library_120_4.txt | ex.php?title=Template:cpp/ranges/subrange/dsc_end&action=edit)
[ empty ](/w/cpp/ranges/subrange/empty "cpp/ranges/subrange/empty") (C++20) | checks whether the ` subrange ` is empty
(public member function) [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/ranges/subrange/dsc_empty&acti... | |
C++_Ranges_library/C++_Ranges_library_154_4.txt | ach n")
[ ranges::lexicographical_compare
](/w/cpp/algorithm/ranges/lexicographical_compare
"cpp/algorithm/ranges/lexicographical compare")
[ ranges::adjacent_find ](/w/cpp/algorithm/ranges/adjacent_find
"cpp/algorithm/ranges/adjacent find")
| [ ranges::count ranges::count_if ](/w/cpp/algorithm/ranges/coun... | |
C++_Ranges_library/C++_Ranges_library_114_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_59_17.txt | s_view = elements_view<R, 0>; // freestanding
template<class R>
using values_view = elements_view<R, 1>; // freestanding
namespace views {
template<size_t N>
inline constexpr /* unspecified */ elements = /* unspecified *... | |
C++_Ranges_library/C++_Ranges_library_5_2.txt | std::basic_streambuf ](/w/cpp/io/basic_streambuf "cpp/io/basic streambuf") )
and provides high-level input interface
(class template) [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/io/dsc_basic_istream&action=edit)
[ basic_iostream ](/w/cpp/io/basic_iostream "cpp/io/basic iostream") ... | |
C++_Ranges_library/C++_Ranges_library_153_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_129_4.txt | ` views::istream<T> ` denotes a _customization point object_ , which
is a const [ function object ](/w/cpp/named_req/FunctionObject "cpp/named
req/FunctionObject") of a [ literal ](/w/cpp/named_req/LiteralType "cpp/named
req/LiteralType") [ ` semiregular ` ](/w/cpp/concepts/semiregular
"cpp/concepts/semiregular") class... | |
C++_Ranges_library/C++_Ranges_library_76_3.txt | _reference_t ](http://en.cppreference.com/w/cpp/types/remove_reference) < T > & if the argument is an lvalue (i.e. ` T ` is an lvalue reference type),
* const T otherwise.
A call to ` ranges::crbegin ` is [ expression-equivalent ](/w/cpp/language/expressions#Expression-equivalence "cpp/language/expressions") t... | |
C++_Ranges_library/C++_Ranges_library_29_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/what-will-be-the-output-of-the-following-c-code--5ab8a41bc56b6664bc9bacdd8_25_0.txt | i++;// increamented by 1 but here i is a local variable inside a for
loop.[this i values are 0,1,2,3,4]
} | |
C++_Ranges_library/C++_Ranges_library_11_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_74_0.txt | ##### [ cppreference.com ](/)
[ Create account
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Fcoroutine%2Fgenerator&type=signup)
* [ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Fcoroutine%2Fgenerator "You are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespac... | |
C++_Ranges_library/C++_Ranges_library_130_12.txt | r/vector") | 201907L | [ ` <vector> ` ](/w/cpp/header/vector "cpp/header/vector") | (C++20) | [ P1004R2 ](https://wg21.link/P1004R2)
` __cpp_lib_containers_ranges ` | [ Ranges-aware ](/w/cpp/ranges/to#container_compatible_range "cpp/ranges/to") construction and insertion for containers and strings | 202202L ... | |
C++_Ranges_library/what-will-be-the-output-of-the-following-c-code--5ab8a41bc56b6664bc9bacdd8_11_0.txt | ISRO Scientist CS 2017 Official Paper - I
Download PDF Attempt Online | |
C++_Ranges_library/C++_Ranges_library_51_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_37_6.txt | s::drop_while(is_space) | std::[views::reverse](http://en.cppreference.com/w/cpp/ranges/reverse_view)
;
return {view.begin(), view.end()};
}
int main()
{
static_assert(trim_left(" \n C++23") == "C++23"sv);
constexpr [std::string_view](http://en.cppreference.co... | |
C++_Ranges_library/C++_Ranges_library_79_4.txt | create_directories ](/w/cpp/filesystem/create_directory "cpp/filesystem/create directory") (C++17) (C++17) | creates new directory
(function) [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/filesystem/dsc_create_directory&action=edit)
[ create_hard_link ](/w/cpp/filesystem/create_h... | |
C++_Ranges_library/C++_Ranges_library_58_0.txt | ##### [ cppreference.com ](/)
[ Log in
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Fenumerate+view
"You are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/cpp/ranges/enumerate_view "View the content page \[c\]")
* [ Discussion ](/mwiki/index.php?... | |
C++_Ranges_library/C++_Ranges_library_136_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_73_3.txt | https://wg21.link/P1668R1)
Changing the active member of a union in constant evaluation | 202002L | (C++20) | [ P1330R0 ](https://wg21.link/P1330R0)
[ P2493R0 ](https://wg21.link/P2493R0)
Non- [ literal ](/w/cpp/named_req/LiteralType "cpp/named req/LiteralType") variables, labels, and [ ` goto ` ](/w/cpp/l... | |
C++_Ranges_library/C++_Ranges_library_130_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_39_0.txt | ##### [ cppreference.com ](/)
[ Log in
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Ffrom+range
"You are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/cpp/ranges/from_range "View the content page \[c\]")
* [ Discussion ](/mwiki/index.php?title=Ta... | |
C++_Ranges_library/C++_Ranges_library_3_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_58_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_99_7.txt | static_assert of non-value-dependent expressions in a template context | [ CWG2518 ](https://cplusplus.github.io/CWG/issues/2518.html) | 13 | 17 | 16.0*
(partial) *
19.40* | | | | | | | | | | |
C++23 feature |
Paper(s) | GCC | Clang | MSVC | Apple Clang | EDG eccp ... | |
C++_Ranges_library/C++_Ranges_library_122_5.txt | sc_has_single_bit&action=edit)
[ bit_ceil ](/w/cpp/numeric/bit_ceil "cpp/numeric/bit ceil") (C++20) | finds the smallest integral power of two not less than the given value
(function template) [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/numeric/dsc_bit_ceil&action=edit)
[ bit_fl... | |
C++_Ranges_library/C++_Ranges_library_23_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_141_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/param-pack.html4_1_0.txt | # C++20 idioms for parameter packs
David Mazières | |
C++_Ranges_library/C++_Ranges_library_73_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_41_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_136_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_117_4.txt |
* S \- N \+ 1 , if ` S >= N ` ,
* 0 otherwise, and the resulting view is empty.
2) The name views :: adjacent < N > denotes a [ RangeAdaptorObject
](/w/cpp/named_req/RangeAdaptorObject "cpp/named req/RangeAdaptorObject") .
Given a subexpression e and a constant expression N , the expressio... | |
C++_Ranges_library/C++_Ranges_library_14_0.txt | ##### [ cppreference.com ](/)
[ Create account
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Flocale&type=signup)
* [ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Flocale "You are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/cpp/locale... | |
C++_Ranges_library/C++_Ranges_library_99_3.txt | use of [ ` std::weak_ptr ` ](/w/cpp/memory/weak_ptr "cpp/memory/weak ptr") as keys in unordered associative containers | [ P1901R2 ](https://wg21.link/P1901R2) | | | | | | |
Native handles in file streams | [ P1759R6 ](https://wg21.link/P1759R6) | 14 | 18 | | | | |
Interfacing string streams wit... | |
C++_Ranges_library/C++_Ranges_library_150_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_144_2.txt | with view") (C++23) (C++23)
[ lazy_split_view views::lazy_split ](/w/cpp/ranges/lazy_split_view
"cpp/ranges/lazy split view")
[ split_view views::split ](/w/cpp/ranges/split_view "cpp/ranges/split
view")
[ views::counted ](/w/cpp/ranges/view_counted "cpp/ranges/view counted")
[ common_view views::common... | |
C++_Ranges_library/C++_Ranges_library_141_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_10_8.txt | | ` assign `
---
| ` assign_range `
---
[ | ` assign_range `
--- ](/w/cpp/string/basic_string/assign_range "cpp/string/basic string/assign range") | [ | ` assign_range `
--- ](/w/cpp/container/vector/assign_range "cpp/container/vector/assign range") [ | ` assign_range `
--- ](/w/cpp/container/... | |
C++_Ranges_library/C++_Ranges_library_3_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_11_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_21_5.txt | terator") | iterator that can be advanced in constant time
(named requirement)
[ LegacyContiguousIterator ](/w/cpp/named_req/ContiguousIterator "cpp/named req/ContiguousIterator") (C++17) | iterator to contiguously-allocated elements
(named requirement)
[ ConstexprIterator ](/w/cpp/named_req/ConstexprIte... | |
C++_Ranges_library/C++_Ranges_library_111_3.txt | xpr /*unspecified*/ single = /*unspecified*/ ;
} | (2) | (since C++20)
Call signature | |
template < class T >
requires /* see below */
constexpr /*see below*/ single ( T && t ) ; | | (since C++20)
| |
1) Produces a [ ` view ` ](/w/cpp/ranges/view "cpp/ranges/view") that
... | |
C++_Ranges_library/C++_Ranges_library_59_58.txt | onst noexcept;
constexpr auto size() const
requires sized_sentinel_for<sentinel_t<V>, iterator_t<V>>;
};
}
#### [ [ edit
](/mwiki/index.php?title=Template:cpp/synopsis/ranges&action=edit§ion=T-79
"Template:cpp/synopsis/ranges") ] Class template
std::ranges::chunk_view::inner_ite... | |
C++_Ranges_library/what-will-be-the-output-of-the-following-c-code--5ab8a41bc56b6664bc9bacdd8_48_0.txt | ISRO Scientist CS
TCS | |
C++_Ranges_library/C++_Ranges_library_128_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_9_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/checking-cin-input-stream-produces-an-integer9_34_0.txt | 42
You can check like this: | |
C++_Ranges_library/C++_Ranges_library_29_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_31_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_96_11.txt | ply logical operators to other type traits.
Defined in header ` [ <type_traits> ](/w/cpp/header/type_traits
"cpp/header/type traits") `
---
[ conjunction ](/w/cpp/types/conjunction "cpp/types/conjunction") (C++17) | variadic logical AND metafunction
(class template) [ [edit]
](https://en.cppreference.com/mw... | |
C++_Ranges_library/C++_Ranges_library_56_23.txt | ow_move_constructible ` ](/w/cpp/types/is_move_constructible
"cpp/types/is move constructible") <> (since C++11)
[ ` is_nothrow_move_constructible_v ` ](/w/cpp/types/is_move_constructible
"cpp/types/is move constructible") <> (since C++17)
[ ` is_nothrow_swappable ` ](/w/cpp/types/is_swappable "cpp/types/is
swappab... | |
C++_Ranges_library/C++_Ranges_library_73_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/param-pack.html4_67_0.txt |
struct Base {}; // empty
struct Derived : Base {
/* ... unspecified ... */
};
EBO states that ` Base ` need not increase the size of ` Derived ` so long as
the first data member in ` Derived ` doesnât also start with ` Base ` . In
other words, ` Base ` is allowed to share the same ad... | |
C++_Ranges_library/C++_Ranges_library_130_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 | ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.