Scroll to navigation

std::chars_format(3) C++ Standard Libary std::chars_format(3)

NAME

std::chars_format - std::chars_format

Synopsis


Defined in header <charconv>
enum class chars_format {


scientific = /*unspecified*/,
fixed = /*unspecified*/, (since C++17)
hex = /*unspecified*/,
general = fixed | scientific


};


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 201611L (C++17) Elementary string conversions (std::to_chars,
std::from_chars)

Example


This section is incomplete
Reason: no example

See also


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

Category:


* Todo no example

2024.06.10 http://cppreference.com