BloombergLP::bdldfp::DecimalNumPut::do_put_impl

Format the specified value and write it through out.

Synopsis

Declared in <bdldfp_decimal.h>

template<class DECIMAL>
iter_type
do_put_impl(
    iter_type out,
    std::ios_base& ios_format,
    char_type fill,
    DECIMAL value) const;

Description

Write characters that represent the specified value into a string of the specified char_type, and output the represented decimal number to the specified out, adjusting for the formatting flags in the specified ios_format and using the specified fill character. Currently, formatting for the formatting flags of justification, width, uppercase, showpos, fixed and scientific are supported.

Return Value

an iterator positioned after the last character written

Parameters

NameDescription
outoutput iterator destination
ios_formatstream formatting state
fillfill character for padding
valuedecimal value to format