This class provides the implementations of parse and format for formatters that format a type using its streaming operator.

Synopsis

Declared in <bslfmt_streamedformatter.h>

template<class t_STREAMABLE>
struct StreamedFormatter;

Member Functions

Name

Description

format

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.

parse

Parse and validate the specification string stored in the iterator accessed via the begin() method of the parseContext passed via the specified parseContext parameter. Where nested parameters are encountered in the specification string then the next_arg_id and check_arg_id are called on fc as specified in the C++ Standard. Return an end iterator of the parsed range. Throw an exception of type bsl::format_error in the event of failure.

Created with MrDocs