std::chars_format

From cppreference.com
< cpp‎ | utility
 
 
Utilities library
General utilities
Date and time
Function objects
Formatting library (C++20)
(C++11)
Relational operators (deprecated in C++20)
Integer comparison functions
(C++20)(C++20)(C++20)   
(C++20)
Swap and type operations
(C++14)
(C++11)
(C++11)
(C++11)
(C++17)
Common vocabulary types
(C++11)
(C++17)
(C++17)
(C++17)
(C++11)
(C++17)
(C++23)
Elementary string conversions
(C++17)
(C++17)
chars_format
(C++17)
 
Defined in header <charconv>
enum class 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

Notes

Feature-test macro: __cpp_lib_to_chars

See also

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