Namespaces
Variants
Actions

std::chars_format

From cppreference.com
< cpp‎ | utility
Defined in header <charconv>
enumclass chars_format {

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

};
(since C++17)

A BitmaskType used to specify floating-point formatting for std::to_chars and std::from_chars.

[edit]Notes

Feature-test macroValueStdFeature
__cpp_lib_to_chars201611L(C++17)Elementary string conversions (std::to_chars, std::from_chars)

[edit]Example

[edit]See also

(C++17)
converts an integer or floating-point value to a character sequence
(function)[edit]
(C++17)
converts a character sequence to an integer or floating-point value
(function)[edit]
close