tring converters ](/w/cpp/string/byte#Conversions_to_numeric_formats
"cpp/string/byte") , the header [ ` <charconv> ` ](/w/cpp/header/charconv
"cpp/header/charconv") provides light-weight, locale-independent, non-
allocating, non-throwing parsers and formatters for arithmetic types.

Defined in header ` [ <charconv> ](/w/cpp/header/charconv
"cpp/header/charconv") `  
---  
[ to_chars  ](/w/cpp/utility/to_chars "cpp/utility/to chars") (C++17)  |  converts an integer or floating-point value to a character sequence   
(function)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/utility/dsc_to_chars&action=edit)  
[ to_chars_result  ](/w/cpp/utility/to_chars_result "cpp/utility/to chars result") (C++17)  |  the return type of [ ` std::to_chars ` ](/w/cpp/utility/to_chars "cpp/utility/to chars")   
(class)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/utility/dsc_to_chars_result&action=edit)  
[ from_chars  ](/w/cpp/utility/from_chars "cpp/utility/from chars") (C++17)  |  converts a character sequence to an integer or floating-point value   
(function)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/utility/dsc_from_chars&action=edit)  
[ from_chars_result  ](/w/cpp/utility/from_chars_result "cpp/utility/from chars result") (C++17)  |  the return type of [ ` std::from_chars ` ](/w/cpp/utility/from_chars "cpp/utility/from chars")   
(class)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/utility/dsc_from_chars_result&action=edit)  
[ chars_format  ](/w/cpp/utility/chars_format "cpp/utility/chars format") (C++17)  |  specifies formatting for  std::to_chars  and  std::from_chars    
(enum)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/utility/dsc_chars_format&action=edit)  
  
###  [ [ edit ](/mwiki/index.php?title=cpp/utility&action=edit&section=27
"Edit section: Formatting library") ]  [ Formatting library
](/w/cpp/utility/format "cpp/utility/format")

Facilities for type-safe string formatting.

Defined in header ` [ <format> ](/w/cpp/header/format "cpp/header/format") `  
---  
[ format  ](/w/cpp/utility/format/format "cpp/utility/format/format") (C++20)  |  stores formatted representation of the arguments in a new string   
(function template)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/utility/format/dsc_format&action=edit)  
[ format_to  ](/w/cpp/utility/format/format_to "cpp/utility/format/format to") (C++20)  |  writes out formatted representation of its arguments through an output iterator   
(function template)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/utility/format/dsc_format_to&action=edit)  
[ format_to_n  ](/w/cpp/utility/format/format_to_n "cpp/utility/format/format to n") (C++20)  |  writes out formatted representation of its arguments through an output iterator, not exceeding specified size   
(function template)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/utility/format/dsc_format_to_n&action=edit)  
[ formatted_size  ](/w/cpp/utility/format/formatted_size "cpp/utility/format/formatted size") (C++20)  |  determines the number of characters necessary to store the formatted representation of its arguments   
(function template)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/utility/format/dsc_formatted_size&action=edit)  
[ vformat  ](/w/cpp/utility/format/vformat "cpp/utility/format/vformat") (C++20)  |  non-template variant of  [ std::format ](/w/cpp/utility/format/format "cpp/utility/format/format") using type-erased argument representation   
(function)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/utility/format/dsc_vformat&action=edit)  
[ vformat_to  ](/w/cpp/utility/format/vformat_to "cpp/utility/format/vformat to") (C++20)  |  non-template variant of  [ std::format_to ](/w/cpp/utility/format/format_to "cpp/utility/format/for