std::chars_format(3)
π NAME π
okay so bestie, you're on the std::chars_format(3) page in the C++ Standard Libary, and the name is literally std::chars_format - std::chars_format. yes, the icon is the title, the title is the icon, periodt. πβ¨
β¨ Synopsis β¨
Defined in header <charconv>
Here's the whole mood, copied exactly because we do not play with code:
enum class chars_format {
scientific = /*unspecified*/,
fixed = /*unspecified*/, (since C++17)
hex = /*unspecified*/,
general = fixed | scientific
};
So it's a BitmaskType used to specify floating-point formatting for std::to_chars and std::from_chars. that's the job. it ate. π
π₯
π§ Notes π§
Feature-test macro check, because we love a build-system receipt:
__cpp_lib_to_charsβ value201611L, std(C++17), feature: Elementary string conversions (std::to_chars,std::from_chars) π
πΈ Example πΈ
This section is incomplete.
Reason: no example.
no example yet, bestie π the page says it itself, and we respect the honesty. π«Ά
π See also π
to_chars(C++17) β converts an integer or floating-point value to a character sequence (function)from_chars(C++17) β converts a character sequence to an integer or floating-point value (function)
the way these two are linked here is giving "you and your bestie in every group project" energy. ππ¦
ποΈ Category ποΈ
- Todo no example
source/version check: huge love to http://cppreference.com, the 2024.06.10 version, and std::chars_format(3) itself β byeee bestie, go format some floats responsibly π
ππ
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms