|
NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
128位整数类型实现 更多...
#include "NeForce/core/string/to_numerics.hpp"#include "NeForce/core/string/to_string.hpp"#include "NeForce/core/interface/iobject.hpp"#include "NeForce/core/interface/inumeric.hpp"类 | |
| struct | uint128_t |
| 128位无符号整数类型 更多... | |
| struct | int128_t |
| 128位有符号整数类型 更多... | |
| class | numeric_traits< uint128_t > |
| uint128_t类型的数值特征特化 更多... | |
| class | numeric_traits< int128_t > |
| int128_t类型的数值特征特化 更多... | |
函数 | |
| constexpr uint128_t | operator""_u128 (const unsigned long long val) noexcept |
| 128位无符号整数字面量 | |
| constexpr int128_t | operator""_i128 (const unsigned long long val) noexcept |
| 128位有符号整数字面量 | |
| constexpr uint128_t | operator""_u128 (const char *str, const size_t len) |
| 128位无符号整数字符串字面量 | |
| constexpr int128_t | operator""_i128 (const char *str, const size_t len) |
| 128位有符号整数字符串字面量 | |
| constexpr uint128_t | to_uint128 (const string_view sv, size_t *idx=nullptr, const int base=10) |
| 将字符串转换为128位无符号整数 | |
| constexpr int128_t | to_int128 (const string_view sv, size_t *idx=nullptr, const int base=10) |
| 将字符串转换为128位有符号整数 | |
128位整数类型实现
此文件提供了128位有符号和无符号整数类型的完整实现。 支持所有基本算术运算、位运算、比较运算、字符串转换等功能。
主要功能:
在文件 int128.hpp 中定义.