Format the specified value into the specified formatContext.

Synopsis

Declared in <bdldfp_decimal.h>

template<class t_FORMAT_CONTEXT>
t_FORMAT_CONTEXT::iterator
format(
    t_VALUE const& value,
    t_FORMAT_CONTEXT& formatContext) const;

Description

Create string representation of the specified value, customized in accordance with the requested format and the specified formatContext, and copy it to the output that the output iterator of the formatContext points to. The behavior is undefined unless t_FORMAT_CONTEXT is either std::format_context if that is supported, or otherwise bslfmt::format_context.

Return Value

an iterator one past the last character written

Parameters

Name

Description

value

decimal value to format

formatContext

formatting context providing the output iterator

Created with MrDocs