MSTL 1.4.0
A Modern C++ Library with extended functionality, web components, and utility libraries
载入中...
搜索中...
未找到
核心类型

基础类型别名和通用类型定义 更多...

类型定义

using nullptr_t = decltype(nullptr)
 空指针类型
using max_align_t = double
 最大对齐类型
using byte_t = unsigned char
 字节类型,定义为无符号字符
using int8_t = signed char
 8位有符号整数类型
using int16_t = short
 16位有符号整数类型
using int32_t = int
 32位有符号整数类型
using int64_t
 64位有符号整数类型
using uint8_t = unsigned char
 8位无符号整数类型
using uint16_t = unsigned short
 16位无符号整数类型
using uint32_t = unsigned int
 32位无符号整数类型
using uint64_t
 64位无符号整数类型
using float32_t = float
 32位单精度浮点数类型
using float64_t = double
 64位双精度浮点数类型
using decimal_t = long double
 扩展精度浮点数类型

详细描述

基础类型别名和通用类型定义

类型定义说明

◆ decimal_t

using decimal_t = long double

扩展精度浮点数类型

使用long double实现,提供比double更高的精度。

在文件 types.hpp125 行定义.

◆ int64_t

using int64_t
初始值:
long long

64位有符号整数类型

Linux为long,Windows为long long

在文件 types.hpp68 行定义.

◆ uint64_t

using uint64_t
初始值:
unsigned long long

64位无符号整数类型

Linux为unsigned long,Windows为unsigned long long

在文件 types.hpp99 行定义.