|
NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
|
数值类型极限特性主模板 更多...
#include <numeric_traits.hpp>
静态 Public 成员函数 | |
| static constexpr T | min () noexcept |
| 获取类型的最小值 | |
| static constexpr T | max () noexcept |
| 获取类型的最大值 | |
| static constexpr T | lowest () noexcept |
| 获取类型的最低值 | |
| static constexpr T | epsilon () noexcept |
| 获取机器精度 | |
| static constexpr T | round_error () noexcept |
| 获取最大舍入误差 | |
| static constexpr T | denorm_min () noexcept |
| 获取最小的次正规化正值 | |
| static constexpr T | infinity () noexcept |
| 获取正无穷大表示 | |
| static constexpr T | quiet_nan () noexcept |
| 获取安静nan表示 | |
| static constexpr T | signaling_nan () noexcept |
| 获取信号nan表示 | |
数值类型极限特性主模板
| T | 数值类型 |
| Dummy | SFINAE参数 |
主模板提供默认实现,返回类型T的默认值。 特定类型的特化将提供该类型的具体数值特性。
在文件 numeric_traits.hpp 第 141 行定义.
|
inlinestaticnodiscardconstexprnoexcept |
|
inlinestaticnodiscardconstexprnoexcept |
|
inlinestaticnodiscardconstexprnoexcept |
获取正无穷大表示
在文件 numeric_traits.hpp 第 183 行定义.
被这些函数引用 neforce::is_neg_infinity(), neforce::is_pos_infinity(), neforce::logarithm_e() , 以及 neforce::tangent().
|
inlinestaticnodiscardconstexprnoexcept |
获取类型的最低值
在文件 numeric_traits.hpp 第 160 行定义.
被这些函数引用 neforce::duration< common_type_t< Rep >, typename Period::type >::min().
|
inlinestaticnodiscardconstexprnoexcept |
获取类型的最大值
在文件 numeric_traits.hpp 第 153 行定义.
被这些函数引用 neforce::ceil(), neforce::http::route_trie::contains_path(), neforce::floor(), neforce::http::route_trie::insert(), neforce::http::route_trie::match(), neforce::duration< common_type_t< Rep >, typename Period::type >::max(), neforce::latch::max(), neforce::tree_barrier< CmplFunc >::max(), neforce::dynamic_buffer::max_size(), neforce::random_lcd::next_float(), neforce::random_mt::next_float(), neforce::secret::next_float(), neforce::scope_fail< Func >::release(), neforce::scope_success< Func >::release(), neforce::to_int16(), neforce::to_int8(), neforce::to_uint16(), neforce::to_uint8(), neforce::http::byte_cursor::try_peek_bits() , 以及 neforce::http::byte_cursor::try_read_bits().
|
inlinestaticnodiscardconstexprnoexcept |
获取类型的最小值
在文件 numeric_traits.hpp 第 148 行定义.
被这些函数引用 neforce::is_normal(), neforce::to_int16() , 以及 neforce::to_int8().
|
inlinestaticnodiscardconstexprnoexcept |
获取安静nan表示
安静nan在大多数算术操作中不会触发浮点异常,具体特点如下:
在文件 numeric_traits.hpp 第 193 行定义.
被这些函数引用 neforce::arccosine(), neforce::arcsine(), neforce::cosine(), neforce::logarithm_e(), neforce::mod(), neforce::remainder(), neforce::sine(), neforce::square_root() , 以及 neforce::tangent().
|
inlinestaticnodiscardconstexprnoexcept |
|
inlinestaticnodiscardconstexprnoexcept |
获取信号nan表示
信号nan在大多数算术操作中会触发浮点异常,如SIGFPE或浮点无效操作异常。 一旦参与运算,如果硬件/系统启用了浮点异常捕获,可能触发陷阱。 其用于调试和诊断,可以捕获未初始化的浮点数使用。
在文件 numeric_traits.hpp 第 204 行定义.