Template:cpp/numeric/math/declarations
From cppreference.com
| Defined in header <cmath>
|
||
| (1) | ||
float {{{family}}} ( float {{{param1}}} );
double {{{family}}} ( double {{{param1}}} );
long double {{{family}}} ( long double {{{param1}}} );
|
(until C++23) | |
/*floating-point-type*/
{{{family}}} ( /*floating-point-type*/ {{{param1}}} );
|
(since C++23) | |
float {{{family}}}f( float {{{param1}}} );
|
(2) | (since C++11) |
long double {{{family}}}l( long double {{{param1}}} );
|
(3) | (since C++11) |
| SIMD overload (since C++26) |
||
| Defined in header <simd>
|
||
template< /*math-floating-point*/ V >
constexpr /*deduced-simd-t*/<V>
{{{family}}} ( const V& v_{{{param1}}} );
|
(S) | (since C++26) |
| Additional overloads (since C++11) |
||
| Defined in header <cmath>
|
||
template< class Integer >
double {{{family}}} ( Integer {{{param1}}} );
|
(A) | |
1-3) {{{desc}}} The library provides overloads of
std::{{{family}}} for all cv-unqualified floating-point types as the type of the parameter.(since C++23)|
S) The SIMD overload performs an element-wise
std::{{{family}}} on v_{{{param1}}}.
|
(since C++26) |
|
A) Additional overloads are provided for all integer types, which are treated as
double. |
(since C++11) |