std::chars_format
From cppreference.com
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Text processing library
Regular expressions library (C++11)
Formatting library (C++20)
Defined in header
<charconv>
enum class chars_format {
(since C++17)
scientific = /*unspecified*/,
fixed = /*unspecified*/,
hex = /*unspecified*/,
general = fixed | scientific
A BitmaskType used to specify floating-point formatting for std::to_chars and std::from_chars.
[edit] Notes
Feature-test macro | Value | Std | Feature |
---|---|---|---|
__cpp_lib_to_chars |
201611L |
(C++17) | Elementary string conversions (std::to_chars, std::from_chars) |
[edit] Example
This section is incomplete
Reason: no example
Reason: no example