NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
载入中...
搜索中...
未找到
数值包装

数值类型的包装类集合 更多...

数值包装 的协作图:

专题

 UTF
 UTF字符包装类集合

struct  neforce::hexadecimal
 十六进制数值包装类 更多...
struct  neforce::boolean
 布尔值包装类 更多...
struct  neforce::integer8
 8位整数包装类 更多...
struct  neforce::integer16
 16位整数包装类 更多...
struct  neforce::integer32
 32位整数包装类 更多...
struct  neforce::integer64
 64位整数包装类 更多...
struct  neforce::uinteger8
 无符号8位整数包装类 更多...
struct  neforce::uinteger16
 无符号16位整数包装类 更多...
struct  neforce::uinteger32
 无符号32位整数包装类 更多...
struct  neforce::uinteger64
 无符号64位整数包装类 更多...
struct  neforce::uinteger128
 128位无符号整数包装类 更多...
struct  neforce::integer128
 128位有符号整数包装类 更多...
struct  neforce::float32
 32位浮点数包装类 更多...
struct  neforce::float64
 64位浮点数包装类 更多...
struct  neforce::decimal
 长双精度浮点数包装类 更多...

类型定义

using neforce::byte = uinteger8
 字节包装类

函数

constexpr neforce::uinteger128::uinteger128 (string_view str, int base=10)
 从字符串视图构造
constexpr neforce::integer128::integer128 (const string_view str, const int base=10)
 从字符串视图构造

详细描述

数值类型的包装类集合

类型定义说明

◆ byte

字节包装类

提供字节包装,支持类型转换、字符串表示、解析等功能。

在文件 packages.hpp230 行定义.

函数说明

◆ integer128()

neforce::integer128::integer128 ( const string_view str,
const int base = 10 )
explicitconstexpr

从字符串视图构造

参数
str数字字符串视图
base进制基数(默认10)
异常
typecast_exception字符串格式无效时抛出

在文件 packages.hpp460 行定义.

引用了 neforce::to_int128().

◆ uinteger128()

neforce::uinteger128::uinteger128 ( string_view str,
int base = 10 )
explicitconstexpr

从字符串视图构造

参数
str数字字符串视图
base进制基数(默认10)
异常
typecast_exception字符串格式无效时抛出

在文件 packages.hpp456 行定义.

引用了 neforce::to_uint128().