Template:cpp/numeric/math/declarations

来自cppreference.com
在标头 <cmath> 定义
float       {{{family}}} ( float {{{param1}}} );
double      {{{family}}} ( double {{{param1}}} );
long double {{{family}}} ( long double {{{param1}}} );
(1) (C++23 前)
/* 浮点数类型 */
            {{{family}}} ( /* 浮点数类型 */ {{{param1}}} );
(C++23 起)
float       {{{family}}}f( float {{{param1}}} );
(2) (C++11 起)
long double {{{family}}}l( long double {{{param1}}} );
(3) (C++11 起)
SIMD 重载 (C++26 起)
在标头 <simd> 定义
template< /*math-floating-point*/ V >
constexpr /*deduced-simd-t*/<V> 
            {{{family}}} ( const V& v_{{{param1}}} );
(S) (C++26 起)
额外重载 (C++11 起)
在标头 <cmath> 定义
template< class Integer >
double      {{{family}}} ( Integer {{{param1}}} );
(A)
1-3) {{{desc}}}标准库提供所有以无 cv 限定的浮点数类型作为形参的类型的 std::{{{family}}} 重载。(C++23 起)
S) SIMD 重载对 v_{{{param1}}} 实施逐元素 std::{{{family}}}
(参见 math-floating-pointdeduced-simd-t 的定义。)
(C++26 起)
A) 为所有整数类型提供额外重载,将它们当做 double
(C++11 起)