cpp/utility/format/format

Format according to the format string, and return the result as a string. If present, is used for locale-specific formatting.

@1@ equivalent to @2@ equivalent to @3@ equivalent to @4@ equivalent to

The behavior is undefined if does not meet the  requirements for any  in  (as required by  and ), where  is  for overloads,  for overloads.

Return value
A string object holding the formatted result.

Exceptions
Throws std on allocation failure. Also propagates exception thrown by any formatter.