June 2025
Intermediate to advanced
1093 pages
33h 24m
English
Since C++20, there is a new way to format data. In the <format> header, the following elements are the most important:
formatFormats any number of arguments into a string according to a provided format.
format_toFormats into a buffer or iterator.
format_to_nFormats into a buffer up to a specified length.
format_sizeDetermines the length of a formatted output so you can allocate enough space for a buffer.
vformat, vformat_to and make_format_argsLike format and format_to, but the format string does not need to be known at compile time. The elements to be formatted must then be wrapped with make_format_args.
format_errorThe exception that can be thrown during formatting.
formattableA concept for types that you ...
Read now
Unlock full access