Namespaces
Variants
Views
Actions

std::chars_format

From cppreference.com
< cpp‎ | utility
Revision as of 09:53, 21 May 2023 by Andreas Krug (Talk | contribs)

 
 
Utilities library
General utilities
Relational operators (deprecated in C++20)
 
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 Value Std Feature
__cpp_lib_to_chars  

See also

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