Format value using the previously parsed specification.
Synopsis
Declared in <bslfmt_streamedformatter.h>
template<class t_FORMAT_CONTEXT>
t_FORMAT_CONTEXT::iterator
format(
t_STREAMABLE const& value,
t_FORMAT_CONTEXT& formatContext) const;
Description
Format the specified value according to the specification stored as a result of a previous call to the parse method, and write the result to the iterator accessed by calling the out() method on the specified formatContext parameter. Return an end iterator of the output range. Throw an exception of type bsl::format_error in the event of failure.
Return Value
end iterator of the output range
Parameters
Name |
Description |
value |
object to format via its streaming operator |
formatContext |
context providing the output iterator |
Created with MrDocs