命名空间
变体
操作

std::chars_format

来自 cppreference.cn
< cpp‎ | utility
定义于头文件 <charconv>
enum class chars_format {

    scientific = /*unspecified*/,
    fixed      = /*unspecified*/,
    hex        = /*unspecified*/,
    general    = fixed | scientific

};
(自 C++17 起)

用于为 std::to_charsstd::from_chars 指定浮点格式的 位掩码类型

[编辑] 注解

特性测试 Std 特性
__cpp_lib_to_chars 201611L (C++17) 基本字符串转换 (std::to_chars, std::from_chars)

[编辑] 示例

[编辑] 参见

(C++17)
将整数或浮点值转换为字符序列
(函数) [编辑]
将字符序列转换为整数或浮点值
(函数) [编辑]