BloombergLP::bslfmt::FormatterIntegralBase::outputValue

Copy the formatted prefix and value into formatContext.

Synopsis

Declared in <bslfmt_formatterintegralbase.h>

template<class t_FORMAT_CONTEXT>
t_FORMAT_CONTEXT::iterator
outputValue(
    char const* prefixBegin,
    char const* prefixEnd,
    t_CHAR const* valueBegin,
    t_CHAR const* valueEnd,
    t_FORMAT_CONTEXT& formatContext) const;

Description

Copy the prefix of value string representation starting at the specified prefixBegin and ending at the specified prefixEnd as well as representation itself starting at the specified valueBegin and ending at the specified valueEnd to the output that the output iterator of the formatContext points to. Throw bsl::format_error if parsed format specification states incorrect alignment type.

Return Value

output iterator after writing

Parameters

NameDescription
prefixBeginbeginning of the prefix character range
prefixEndend of the prefix character range
valueBeginbeginning of the value character range
valueEndend of the value character range
formatContextoutput context receiving the formatted result