cpp/utility/format/format to n

Format according to the format string, and write the result to the output iterator. At most characters are written. If present, is used for locale-specific formatting.

Let be  for overloads,  for overloads.

The behavior is undefined if does not model (meet the semantic requirements of) the  concept, or if  does not meet the  requirements for any  in.

@5@ has no base classes, or members other than,  and implicitly declared special member functions.

Return value
A such that the  member is an iterator past the end of the output range, and the  member is the total (not truncated) output size.

Exceptions
Propagates any exception thrown by formatter or iterator operations.