Version 2 of the C++ Extensions for Library Fundamentals, ISO/IEC TS 19568:2017, defines the following new components for the C++ standard library, in addition to those defined in version 1:
[edit] The C++ detection idiom [edit] A const-propagating wrapper for pointer-like objects a const-propagating wrapper for pointer-like objectsstd::array
creation
(library fundamentals TS v2)
creates a std::array object whose size and optionally element type are deduced from the argumentsostream_joiner
an output iterator that writes successive elements into an output stream, separating adjacent elements with a delimiter
A per-thread engine of type std::default_random_engine, initialized to an unpredictable state, is maintained for each thread and used by the functions below.
generates a random integer in the specified range__cpp_lib_experimental_logical_traits
a value of at least 201511 indicates that the logical operator type traits are supported__cpp_lib_experimental_detect
a value of at least 201505 indicates that the detection idiom is supported__cpp_lib_experimental_propagate_const
a value of at least 201505 indicates that propagate_const is supported__cpp_lib_experimental_not_fn
a value of at least 201406 indicates that not_fn is supported__cpp_lib_experimental_observer_ptr
a value of at least 201411 indicates that observer_ptr is supported__cpp_lib_experimental_make_array
a value of at least 201505 indicates that make_array is supported__cpp_lib_experimental_ostream_joiner
a value of at least 201411 indicates that ostream_joiner is supported__cpp_lib_experimental_erase_if
a value of at least 201411 indicates that uniform container erasure is supported__cpp_lib_experimental_gcd_lcm
a value of at least 201411 indicates that gcd and lcm are supported__cpp_lib_experimental_randint
a value of at least 201511 indicates that randint and related functions are supported__cpp_lib_experimental_source_location
a value of at least 201505 indicates that source_location is supportedThe following components of the library fundamentals v2 have been adopted into the C++17 standard.
variadic alias template forvoid
constexpr
function template returning the greatest common divisor of two integers
constexpr
function template returning the least common multiple of two integers
The following components of the library fundamentals v2 have been adopted into the C++20 standard.
[edit] Uniform container erasure [edit] Source code information capture a class representing information about the source code, such as file names, line numbers, and function namesstd::array
conversion
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4