Skip to content

Examples

Feature-test macroValueStdFeature
__cpp_constexpr
200704L C++11 constexpr
201304L C++14
aaa
(since C++99)
constexpr, non-const constexpr methods
201603L C++17 Constexpr lambda
201907L C++20 Trivial default initialization and asm-declaration in constexpr functions
__cpp_constexpr_in_decltype
201711L C++14 (DR) Generation of function and variable definitions when needed for constant evaluation
__cpp_constexpr_dynamic_alloc
201907L C++20 Operations for dynamic storage duration in constexpr functions

For path, see path format specification.

(since C++26)

For path, see path format specification.

(until C++11)

For path, see
path format specification
(since C++26)

Section titled “For path, see path format specification”
Defined in header <print>
println( std::format_string<Args...> fmt, Args&&... args );
println( std::format_string<Args...> fmt, Args&&... args );
std::format_string<Args...> fmt, Args&&... args );
std::format_string<Args...> fmt, Args&&... args );
since C++23
(1)
std::format_string<Args...> fmt, Args&&... args );
std::format_string<Args...> fmt, Args&&... args );
since C++23
(2)
computes sine (sin(x))(function)
computes tangent (tan(x))(function)
computes arc cosine(arccos(x)) (function)
computes cosine of a complex number (cos(z))(function template)
applies the function std::cos to each element of valarray(function template)

yyyy2 xxxnote2

xx aa
For path, see path format specification.
(until C++11)
yy
aabb