名稱空間
變體
操作

std::chars_format

來自 cppreference.com
< cpp‎ | 工具
定義於標頭檔案 <charconv>
enum class chars_format {

    scientific = /*未指定*/,
    fixed      = /*未指定*/,
    hex        = /*未指定*/,
    general    = fixed | scientific

};
(C++17 起)

一個 位掩碼型別,用於指定 std::to_charsstd::from_chars 的浮點數格式化。

[編輯] 注意

特性測試 標準 特性
__cpp_lib_to_chars 201611L (C++17) 基本字串轉換 (std::to_chars, std::from_chars)

[編輯] 示例

[編輯] 參閱

(C++17)
將整數或浮點值轉換為字元序列
(函式) [編輯]
將字元序列轉換為整數或浮點值
(函式) [編輯]