|
MSTL 1.4.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
计算整数的绝对值 更多...
#include <static_numeric.hpp>
额外继承的成员函数 | |
| Public 类型 继承自 integral_constant< intmax_t, Value *static_sign< Value >::value > | |
| using | value_type |
| 值类型 | |
| using | type |
| 自身类型 | |
| Public 成员函数 继承自 integral_constant< intmax_t, Value *static_sign< Value >::value > | |
| constexpr | operator value_type () const noexcept |
| 显式转换到值类型的运算符 | |
| MSTL_NODISCARD constexpr value_type | operator() () const noexcept |
| 函数调用运算符,用于获取值 | |
| 静态 Public 属性 继承自 integral_constant< intmax_t, Value *static_sign< Value >::value > | |
| static constexpr intmax_t | value |
| 存储的整数值 | |
计算整数的绝对值
| Value | 整数值 |
返回整数的绝对值,编译期计算。
在文件 static_numeric.hpp 第 41 行定义.