id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
C++_Ranges_library/C++_Ranges_library_121_0.txt | ##### [ cppreference.com ](/)
[ Create account
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Ftypes%2Fresult+of%29&type=signup)
* [ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Ftypes%2Fresult+of%29 "You are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces... | |
C++_Ranges_library/C++_Ranges_library_56_32.txt | C++17)
[ ` ospanstream ` ](/w/cpp/io/basic_ospanstream "cpp/io/basic ospanstream")
(since C++23)
[ ` ostream ` ](/w/cpp/io/basic_ostream "cpp/io/basic ostream")
[ ` ostreambuf_iterator ` ](/w/cpp/iterator/ostreambuf_iterator
"cpp/iterator/ostreambuf iterator") <>
[ ` ostream_iterator ` ](/w/cpp/iterator/ostream... | |
C++_Ranges_library/C++_Ranges_library_75_3.txt | d its copies can be used interchangeably.
Given a set of types ` Args... ` , if [ std:: declval
](http://en.cppreference.com/w/cpp/utility/declval) < Args > ( ) ... meet
the requirements for arguments to ` ranges::cpo ` above, ` ___cpo_fn_ ` models
* [ std:: invocable ](http://en.cppreference.com/w/cpp/co... | |
C++_Ranges_library/C++_Ranges_library_152_3.txt | s/join
view/iterator/operator*")
[ join_view:: _iterator_ ::operator++
join_view:: _iterator_ ::operator++ (int)
join_view:: _iterator_ ::operator--
join_view:: _iterator_ ::operator-- (int)
](/w/cpp/ranges/join_view/iterator/operator_arith "cpp/ranges/join
view/iterator/operator arith")
[ join_view:: _iter... | |
C++_Ranges_library/C++_Ranges_library_97_2.txt | 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/ranges/split
view")
[ views::counted ](/w/cpp/ranges... | |
C++_Ranges_library/C++_Ranges_library_3_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/checking-cin-input-stream-produces-an-integer9_138_0.txt | 2
Checking if input is integer | |
C++_Ranges_library/C++_Ranges_library_130_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_3_26.txt | ](/w/cpp/header/tuple "cpp/header/tuple") [ ` <utility> ` ](/w/cpp/header/utility "cpp/header/utility") | (C++14) | [ N3670 ](https://wg21.link/N3670)
` __cpp_lib_type_identity ` | std::type_identity | 201806L | [ ` <type_traits> ` ](/w/cpp/header/type_traits "cpp/header/type traits") | (C++20) | [ P0887R1... | |
C++_Ranges_library/C++_Ranges_library_39_5.txt | 1.png) ](//www.mediawiki.org/) [  ](http://qbnz.com/highlighter/) [  ](http://www.tigertech.net/referral/cppreference.com)... | |
C++_Ranges_library/C++_Ranges_library_3_27.txt | rary
# include <boost/optional.hpp>
# else // Not found at all
# error "Missing <optional>"
# endif
#endif
#ifdef __has_cpp_attribute // Check if __has_cpp_attribute is present
# if __has_cpp_attribute(deprecated) ... | |
C++_Ranges_library/C++_Ranges_library_31_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_8_0.txt | ##### [ cppreference.com ](/)
[ Log in
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Fslide+view
"You are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/cpp/ranges/slide_view "View the content page \[c\]")
* [ Discussion ](/mwiki/index.php?title=Ta... | |
C++_Ranges_library/C++_Ranges_library_88_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_67_1.txt | ](/w/cpp/ranges/iterator_t "cpp/ranges/iterator t")
(C++23)
---
| [ elements_of ](/w/cpp/ranges/elements_of "cpp/ranges/elements of")
(C++23)
---
[ Dangling iterator handling ](/w/cpp/ranges#Dangling_iterator_handling
"cpp/ranges")
| [ dangling ](/w/cpp/ranges/dangling "cpp/... | |
C++_Ranges_library/C++_Ranges_library_32_3.txt |
| [ ` <ciso646> ` ](/w/cpp/header/ciso646 "cpp/header/ciso646") (until C++20)
---
[ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/header/navbar_content&action=edit)
This header is part of the [ iterator ](/w/cpp/iterator "cpp/iterator")
library.
This header is a parti... | |
C++_Ranges_library/C++_Ranges_library_78_0.txt | ##### [ cppreference.com ](/)
[ Log in
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Fstandard+library
"You are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/cpp/standard_library "View the content page \[c\]")
* [ Discussion ](/mwiki/index.php?title=Talk:c... | |
C++_Ranges_library/C++_Ranges_library_58_6.txt | /cpp/ranges/borrowed_range) < View > ; | | (since C++23)
---|---|---
| |
This specialization of [ ` std::ranges::enable_borrowed_range `
](/w/cpp/ranges/borrowed_range "cpp/ranges/borrowed range") makes `
enumerate_view ` satisfy [ ` borrowed_range ` ](/w/cpp/ranges/borrowed_range
"cpp/ranges/borrowed r... | |
C++_Ranges_library/C++_Ranges_library_108_0.txt | ##### [ cppreference.com ](/)
[ Log in
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Fchunk+by+view
"You are encouraged to log in; however, it is not mandatory \[o\]")
##### Namespaces
* [ Page ](/w/cpp/ranges/chunk_by_view "View the content page \[c\]")
* [ Discussion ](/mwiki/index.php?ti... | |
C++_Ranges_library/C++_Ranges_library_59_50.txt |
constexpr auto operator*() const;
constexpr iterator& operator++();
constexpr void operator++(int);
constexpr iterator operator++(int) requires __all_forward<Const, Views...>;
constexpr iterator& operator--() requires __all_bidirectional<Const, Views...>;
constexpr... | |
C++_Ranges_library/C++_Ranges_library_91_1.txt | ++11) (C++11) (C++11)
---
[ count count_if ](/w/cpp/algorithm/count "cpp/algorithm/count")
[ mismatch ](/w/cpp/algorithm/mismatch "cpp/algorithm/mismatch")
[ equal ](/w/cpp/algorithm/equal "cpp/algorithm/equal")
| [ find find_if find_if_not ](/w/cpp/algorithm/find "cpp/algorithm/find")
(C++... | |
C++_Ranges_library/C++_Ranges_library_18_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_31_25.txt | on "cpp/language/operator comparison") (library support); adding three-way comparison to the library | 201907L | [ ` <compare> ` ](/w/cpp/header/compare "cpp/header/compare") | (C++20) | [ P0768R1 ](https://wg21.link/P0768R1)
[ P1614R2 ](https://wg21.link/P1614R2)
` __cpp_lib_to_address ` | Utility to conv... | |
C++_Ranges_library/C++_Ranges_library_7_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_7_1.txt | ](/w/cpp/ranges/iterator_t "cpp/ranges/iterator t")
(C++23)
---
| [ elements_of ](/w/cpp/ranges/elements_of "cpp/ranges/elements of")
(C++23)
---
[ Dangling iterator handling ](/w/cpp/ranges#Dangling_iterator_handling
"cpp/ranges")
| [ dangling ](/w/cpp/ranges/dangling "cpp/... | |
C++_Ranges_library/C++_Ranges_library_114_12.txt | ator \- > ( ) ; } ) ; | (2) | ( exposition only* )
template < class T, class U >
concept /* different-from */ =
! [ std:: same_as ](http://en.cppreference.com/w/cpp/concepts/same_as) < [ std:: remove_cvref_t ](http://en.cppreference.com/w/cpp/types/remove_cvref) < T > , [ std:: remove_... | |
C++_Ranges_library/C++_Ranges_library_109_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_109_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_43_14.txt | ader/cstdbool") (C++11) | Defines one [ compatibility macro constant ](/w/cpp/types "cpp/types") [ [edit] ](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/header/dsc_stdbool.h&action=edit)
#### [ [ edit ](/mwiki/index.php?title=cpp/header&action=edit§ion=5 "Edit
section: Unsupported C header... | |
C++_Ranges_library/C++_Ranges_library_130_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_141_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_11_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_43_9.txt | pp/io/basic ofstream") class templates and several typedefs [ [edit] ](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/header/dsc_fstream&action=edit)
[ <iomanip> ](/w/cpp/header/iomanip "cpp/header/iomanip") | [ Helper functions to control the format of input and output ](/w/cpp/io/manip "cpp/io/man... | |
C++_Ranges_library/C++_Ranges_library_29_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_82_18.txt | eference.com/mwiki/images/9/94/powered_by_tigertech_88x31.png) ](http://www.tigertech.net/referral/cppreference.com)
| |
C++_Ranges_library/C++_Ranges_library_139_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_29_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_32_7.txt | alue_t "cpp/iterator/projected value t") (C++26) | computes the value type of an [ ` indirectly_readable ` ](/w/cpp/iterator/indirectly_readable "cpp/iterator/indirectly readable") type by projection
(alias template) [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/iterator/dsc_projected_... | |
C++_Ranges_library/what-will-be-the-output-of-the-following-c-code--5ab8a41bc56b6664bc9bacdd8_5_0.txt | main( )
{ | |
C++_Ranges_library/C++_Ranges_library_157_3.txt | s::iota ` ](/w/cpp/ranges/iota_view "cpp/ranges/iota view")
The ranges library includes [ range algorithms ](/w/cpp/algorithm/ranges
"cpp/algorithm/ranges") , which are applied to ranges eagerly, and [ range
adaptors ](/w/cpp/ranges#Range_adaptors "cpp/ranges") , which are applied to
views lazily. Adaptors can be comp... | |
C++_Ranges_library/C++_Ranges_library_116_1.txt | _t
](/w/cpp/ranges/iterator_t "cpp/ranges/iterator t")
---
| [ iterator_t const_iterator_t sentinel_t const_sentinel_t
](/w/cpp/ranges/iterator_t "cpp/ranges/iterator t") (C++23) (C++23)
---
| [ range_const_reference_t range_rvalue_reference_t
range_common_reference_t ](/w/cpp/ranges/iterator_t "c... | |
C++_Ranges_library/C++_Ranges_library_96_1.txt | [ is_member_pointer ](/w/cpp/types/is_member_pointer "cpp/types/is member
pointer") (C++11)
[ is_member_object_pointer ](/w/cpp/types/is_member_object_pointer
"cpp/types/is member object pointer") (C++11)
[ is_member_function_pointer ](/w/cpp/types/is_member_function_pointer
"cpp/types/is member function pointer... | |
C++_Ranges_library/C++_Ranges_library_139_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_154_11.txt | /cpp/algorithm/ranges/sort "cpp/algorithm/ranges/sort")
* This page was last modified on 17 April 2023, at 05:35.
* This page has been accessed 99,980 times.
* [ Privacy policy ](/w/Cppreference:Privacy_policy "Cppreference:Privacy policy")
* [ About cppreference.com ](/w/Cppreference:About "Cppreference:Ab... | |
C++_Ranges_library/C++_Ranges_library_23_12.txt | ator \- > ( ) ; } ) ; | (2) | ( exposition only* )
template < class T, class U >
concept /* different-from */ =
! [ std:: same_as ](http://en.cppreference.com/w/cpp/concepts/same_as) < [ std:: remove_cvref_t ](http://en.cppreference.com/w/cpp/types/remove_cvref) < T > , [ std:: remove_... | |
C++_Ranges_library/C++_Ranges_library_23_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_150_25.txt | on "cpp/language/operator comparison") (library support); adding three-way comparison to the library | 201907L | [ ` <compare> ` ](/w/cpp/header/compare "cpp/header/compare") | (C++20) | [ P0768R1 ](https://wg21.link/P0768R1)
[ P1614R2 ](https://wg21.link/P1614R2)
` __cpp_lib_to_address ` | Utility to conv... | |
C++_Ranges_library/C++_Ranges_library_10_21.txt | pp/container/map/key_comp "cpp/container/map/key comp") [ | ` key_comp `
--- ](/w/cpp/container/multimap/key_comp "cpp/container/multimap/key comp") | | | | | | | [ | ` key_comp `
--- ](/w/cpp/container/flat_set/key_comp "cpp/container/flat set/key comp") [ | ` key_comp `
--- ](/w/cpp/container/flat_mul... | |
C++_Ranges_library/C++_Ranges_library_96_4.txt | ype traits") ] Unary type traits
Unary type traits can be used to query the boolean properties of a type at
compile time.
All these type traits satisfy [ UnaryTypeTrait
](/w/cpp/named_req/UnaryTypeTrait "cpp/named req/UnaryTypeTrait") , the base
characteristic of each type trait is either [ std::true_type
](/w/cpp/... | |
C++_Ranges_library/C++_Ranges_library_88_12.txt | ator \- > ( ) ; } ) ; | (2) | ( exposition only* )
template < class T, class U >
concept /* different-from */ =
! [ std:: same_as ](http://en.cppreference.com/w/cpp/concepts/same_as) < [ std:: remove_cvref_t ](http://en.cppreference.com/w/cpp/types/remove_cvref) < T > , [ std:: remove_... | |
C++_Ranges_library/C++_Ranges_library_153_28.txt | xpect },
#endif
#define COMPILER_SPECIFIC_STRING(value) #value
#define COMPILER_SPECIFIC_ENTRY(name) { #name, COMPILER_SPECIFIC_STRING(name) },
class CompilerFeature
{
char const* name_; long data_; long std_;
public:
constexpr CompilerFeature(char const* name, long d... | |
C++_Ranges_library/C++_Ranges_library_59_52.txt | lways present
using iterator_concept = typename ziperator<Const>::iterator_concept;
using value_type =
remove_cvref_t<invoke_result_t<__maybe_const<Const, F>&,
range_reference_t<__maybe_const<Const, Views>>...>>;
using difference_type = range_d... | |
C++_Ranges_library/what-will-be-the-output-of-the-following-c-code--5ab8a41bc56b6664bc9bacdd8_52_0.txt | Q5. Consider the following code segment: int arr[ ] = {0, 1, 2, 3, 4}; int
i=1, *ptr; ptr=arr + 2; arrange the following printf statements in the
increasing order of their output. (A) printf("%d", ptr[i]); (B) printf ("%d",
ptr[i+1]); (C) printf ("%d", ptr[-i]); (D) printf ("%d", ptr[-i+1]); Choose
the correct answer ... | |
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_113_0.txt | ### Post as a guest
Name | |
C++_Ranges_library/C++_Ranges_library_29_12.txt | r/vector") | 201907L | [ ` <vector> ` ](/w/cpp/header/vector "cpp/header/vector") | (C++20) | [ P1004R2 ](https://wg21.link/P1004R2)
` __cpp_lib_containers_ranges ` | [ Ranges-aware ](/w/cpp/ranges/to#container_compatible_range "cpp/ranges/to") construction and insertion for containers and strings | 202202L ... | |
C++_Ranges_library/C++_Ranges_library_49_3.txt | ) (C++20) | specifies that a type is derived from another type
(concept) [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/concepts/dsc_derived_from&action=edit)
[ convertible_to ](/w/cpp/concepts/convertible_to "cpp/concepts/convertible to") (C++20) | specifies that a type is implici... | |
C++_Ranges_library/C++_Ranges_library_56_35.txt | cpp/numeric/math/remainder") (since C++11)
[ ` remainderf() ` ](/w/cpp/numeric/math/remainder
"cpp/numeric/math/remainder") (since C++11)
[ ` remainderl() ` ](/w/cpp/numeric/math/remainder
"cpp/numeric/math/remainder") (since C++11)
[ ` remove() ` ](/w/cpp/io/c/remove "cpp/io/c/remove")
[ ` remove<>() ` ](/w/cp... | |
C++_Ranges_library/C++_Ranges_library_93_4.txt | forward_range "cpp/ranges/forward range") , [ `
bidirectional_range ` ](/w/cpp/ranges/bidirectional_range
"cpp/ranges/bidirectional range") , [ ` random_access_range `
](/w/cpp/ranges/random_access_range "cpp/ranges/random access range") , or [ `
sized_range ` ](/w/cpp/ranges/sized_range "cpp/ranges/sized range") if al... | |
C++_Ranges_library/C++_Ranges_library_71_5.txt | all operator of ` ___zip_transform_fn_ ` participates
in overload resolution.
### [ [ edit
](/mwiki/index.php?title=cpp/ranges/zip_transform_view&action=edit§ion=1
"Edit section: Member functions") ] Member functions
[ (constructor) ](/w/cpp/ranges/zip_transform_view/zip_transform_view "cpp/ranges/zip transfor... | |
C++_Ranges_library/param-pack.html4_55_0.txt |
constexpr int
hexdigit(char c)
{
if (c >= '0' && c <= '9')
return c - '0';
c |= 0x20; // convert upper- to lower-case
if (c >= 'a' && c <= 'f')
return c - ('a' - 10);
return -1; // invalid
}
template<char ...C>
requires... | |
C++_Ranges_library/C++_Ranges_library_29_14.txt | d ](/w/cpp/thread/thread/id "cpp/thread/thread/id") and [ ` std::stacktrace ` ](/w/cpp/utility/basic_stacktrace "cpp/utility/basic stacktrace") | 202302L | [ ` <stacktrace> ` ](/w/cpp/header/stacktrace "cpp/header/stacktrace") [ ` <thread> ` ](/w/cpp/header/thread "cpp/header/thread") | (C++23) | [ P2693R1 ](http... | |
C++_Ranges_library/C++_Ranges_library_126_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/checking-cin-input-stream-produces-an-integer9_139_0.txt | 3
cin assigns beginning of string to int, only fails in second call | |
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_47_0.txt | – Zac Howland
Sep 10, 2013 at 21:19 | |
C++_Ranges_library/C++_Ranges_library_70_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_16_3.txt | inel")
[ take_while_view:: _sentinel_ :: _sentinel_
](/w/cpp/ranges/take_while_view/sentinel/sentinel "cpp/ranges/take while
view/sentinel/sentinel")
[ take_while_view:: _sentinel_ ::base
](/w/cpp/ranges/take_while_view/sentinel/base "cpp/ranges/take while
view/sentinel/base")
[ operator== (take_while_view:: _se... | |
C++_Ranges_library/C++_Ranges_library_3_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_146_3.txt | class template
` _copyable-box_ ` (until C++23) ` _movable-box_ ` (since C++23) . The name
shown here is for exposition purposes only.
The wrapper behaves exactly like [ std:: optional
](http://en.cppreference.com/w/cpp/utility/optional) < T > , except that the
default constructor, copy assignment operator, and m... | |
C++_Ranges_library/C++_Ranges_library_44_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_3_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_29_29.txt | cxx14_lib[] = {
COMPILER_FEATURE_ENTRY(201304L, __cpp_lib_chrono_udls)
COMPILER_FEATURE_ENTRY(201309L, __cpp_lib_complex_udls)
COMPILER_FEATURE_ENTRY(201304L, __cpp_lib_exchange_function)
COMPILER_FEATURE_ENTRY(201304L, __cpp_lib_generic_associative_lookup)
COMPILER_FEATURE_ENTRY... | |
C++_Ranges_library/param-pack.html4_64_0.txt | Thereâs one small issue with multilambda, which is that the copy constructor
might do a little work to move lambdas into the structure. You can avoid this
work by eliminating the constructor and directly initializing all of the
superclasses, using a deduction guide to specify that the template types
should be taken f... | |
C++_Ranges_library/C++_Ranges_library_10_15.txt | "cpp/container/multimap/erase") [ | ` erase `
--- ](/w/cpp/container/unordered_set/erase "cpp/container/unordered set/erase") [ | ` erase `
--- ](/w/cpp/container/unordered_multiset/erase "cpp/container/unordered multiset/erase") [ | ` erase `
--- ](/w/cpp/container/unordered_map/erase "cpp/container/unordere... | |
C++_Ranges_library/C++_Ranges_library_47_1.txt | /TrivialType")
(C++11)
---
[ ImplicitLifetimeType ](/w/cpp/named_req/ImplicitLifetimeType "cpp/named
req/ImplicitLifetimeType")
[ Library-Wide ](/w/cpp/named_req#Library-wide "cpp/named req")
| [ EqualityComparable ](/w/cpp/named_req/EqualityComparable "cpp/named
req/EqualityComparable")
---
[ LessTha... | |
C++_Ranges_library/C++_Ranges_library_28_5.txt | ](//www.mediawiki.org/) [  ](http://qbnz.com/highlighter/) [  ](http://www.tigertech.net/referral/cppreference.com)
| |
C++_Ranges_library/what-will-be-the-output-of-the-following-c-code--5ab8a41bc56b6664bc9bacdd8_22_0.txt | {
int i; | |
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_101_0.txt | Improve this answer
Follow | |
C++_Ranges_library/C++_Ranges_library_119_0.txt | ##### [ cppreference.com ](/)
[ Create account
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Fconstant+range%29&type=signup)
* [ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Franges%2Fconstant+range%29 "You are encouraged to log in; however, it is not mandatory \[o\]")
#####... | |
C++_Ranges_library/C++_Ranges_library_56_13.txt | ontainer/flat_map/erase_if "cpp/container/flat
map/erase if") ( ` std::flat_map ` ) (since C++23)
[ ` erase_if<>() ` ](/w/cpp/container/flat_multimap/erase_if
"cpp/container/flat multimap/erase if") ( ` std::flat_multimap ` ) (since
C++23)
[ ` erase_if<>() ` ](/w/cpp/container/flat_multiset/erase_if
"cpp/containe... | |
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_136_0.txt | 0
Checking for valid type input using std::cin (C++) | |
C++_Ranges_library/param-pack.html4_17_0.txt | While a pack expansion mostly behaves like a series of copies of the pattern,
it is okay to have a pack of size zero even when the program wouldnât
otherwise be syntactically well formed. For example, while ` f(x,) ` and `
struct MyStruct : {}; ` are not valid C++ syntax, ` f(x, pack...) ` and `
struct MyStruct : B... | |
C++_Ranges_library/checking-cin-input-stream-produces-an-integer9_86_0.txt | answered Feb 13, 2017 at 2:51
user6090272 user6090272 | |
C++_Ranges_library/C++_Ranges_library_126_28.txt | xpect },
#endif
#define COMPILER_SPECIFIC_STRING(value) #value
#define COMPILER_SPECIFIC_ENTRY(name) { #name, COMPILER_SPECIFIC_STRING(name) },
class CompilerFeature
{
char const* name_; long data_; long std_;
public:
constexpr CompilerFeature(char const* name, long d... | |
C++_Ranges_library/C++_Ranges_library_140_26.txt | x.html) | Boost.Geometry (aka **G** eneric **G** eometry **L** ibrary, GGL), defines concepts, primitives and algorithms for solving geometry problems. Boost.Geometry contains a dimension-agnostic, coordinate-system-agnostic and scalable kernel, based on concepts, meta-functions and tag dispatching. Supported algorith... | |
C++_Ranges_library/C++_Ranges_library_4_3.txt |
[ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/header/navbar_content&action=edit)
|
## Contents
* 1 Classes
* 2 Synopsis
* 2.1 Class template std:: generator
* 2.2 Class std::generator::promise_type
* 2.3 Class std::generator::iterator
* 3 Referenc... | |
C++_Ranges_library/C++_Ranges_library_109_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_95_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_109_25.txt | on "cpp/language/operator comparison") (library support); adding three-way comparison to the library | 201907L | [ ` <compare> ` ](/w/cpp/header/compare "cpp/header/compare") | (C++20) | [ P0768R1 ](https://wg21.link/P0768R1)
[ P1614R2 ](https://wg21.link/P1614R2)
` __cpp_lib_to_address ` | Utility to conv... | |
C++_Ranges_library/C++_Ranges_library_4_1.txt | "cpp/header/cstdarg")
Concepts
[ ` <concepts> ` ](/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/... | |
C++_Ranges_library/C++_Ranges_library_59_42.txt | plit_view<V, Pattern>> {
private:
V base_ = V(); // exposition only
Pattern pattern_ = Pattern(); // exposition only
// class split_view::iterator
struct iterator; // exposition only
// class ... | |
C++_Ranges_library/C++_Ranges_library_78_8.txt | "cpp/utility/feature test") macro | Value | Std | Feature
---|---|---|---
[ ` __cpp_lib_modules ` ](/w/cpp/feature_test#cpp_lib_modules "cpp/feature test") | 202207L | (C++23) | Standard library modules std and std. compat
(since C++23)
#### [ [ edit
](/mwiki/index.php?title=cpp/standard_li... | |
C++_Ranges_library/C++_Ranges_library_64_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/what-will-be-the-output-of-the-following-c-code--5ab8a41bc56b6664bc9bacdd8_70_0.txt | Sign Up Now &
* Daily Live Classes
* 250+ Test series
* Study Material & PDF
* Quizzes With Detailed Analytics
* \+ More Benefits | |
C++_Ranges_library/C++_Ranges_library_32_13.txt | ept indirect_binary_predicate = /* see description */;
template<class F, class I1, class I2 = I1>
concept indirect_equivalence_relation = /* see description */;
template<class F, class I1, class I2 = I1>
concept indirect_strict_weak_order = /* see description */;
temp... | |
C++_Ranges_library/param-pack.html4_48_0.txt |
template<typename T, typename F>
std::size_t
tuple_find(const T &t, F &&f)
{
return std::apply([&f](const auto &...e) {
std::size_t r = 0;
((std::forward<F>(f)(e) || (++r, false)) || ...);
return r;
}, t);
}
int
main()
{
std::tuple... | |
C++_Ranges_library/C++_Ranges_library_56_38.txt | cpp/utility/source
location") (since C++20)
[ ` span ` ](/w/cpp/container/span "cpp/container/span") <> (since C++20)
[ ` spanbuf ` ](/w/cpp/io/basic_spanbuf "cpp/io/basic spanbuf") (since C++23)
[ ` spanstream ` ](/w/cpp/io/basic_spanstream "cpp/io/basic spanstream")
(since C++23)
[ ` sph_bessel() ` ](/w/cpp/n... | |
C++_Ranges_library/C++_Ranges_library_112_10.txt | mat to") using type-erased argument representation
(function template) [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/utility/format/dsc_vformat_to&action=edit)
[ formatter ](/w/cpp/utility/format/formatter "cpp/utility/format/formatter") (C++20) | defines formatting rules for a give... | |
C++_Ranges_library/C++_Ranges_library_136_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_99_4.txt | 14 | | 19.40* | | | |
Freestanding Library: Partial Classes | [ P2407R5 ](https://wg21.link/P2407R5) | 14 | | | | | |
Freestanding Library: inout expected span | [ P2833R2 ](https://wg21.link/P2833R2) | 14 | | | | | |
DR23: std::basic_const_iterator should follow its underlying typ... | |
C++_Ranges_library/C++_Ranges_library_126_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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.