|
NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
|
numeric_limits的volatile特化版本 更多...
#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表示 | |
| 静态 Public 成员函数 继承自 neforce::numeric_traits< T, Dummy > | |
| 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表示 | |
numeric_limits的volatile特化版本
| T | 数值类型 |
在文件 numeric_traits.hpp 第 219 行定义.
|
inlinestaticnodiscardconstexprnoexcept |
|
inlinestaticnodiscardconstexprnoexcept |
|
inlinestaticnodiscardconstexprnoexcept |
|
inlinestaticnodiscardconstexprnoexcept |
|
inlinestaticnodiscardconstexprnoexcept |
|
inlinestaticnodiscardconstexprnoexcept |
|
inlinestaticnodiscardconstexprnoexcept |
获取安静nan表示
安静nan在大多数算术操作中不会触发浮点异常,具体特点如下:
在文件 numeric_traits.hpp 第 193 行定义.
|
inlinestaticnodiscardconstexprnoexcept |
|
inlinestaticnodiscardconstexprnoexcept |
获取信号nan表示
信号nan在大多数算术操作中会触发浮点异常,如SIGFPE或浮点无效操作异常。 一旦参与运算,如果硬件/系统启用了浮点异常捕获,可能触发陷阱。 其用于调试和诊断,可以捕获未初始化的浮点数使用。
在文件 numeric_traits.hpp 第 204 行定义.