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

Name

Description

out

output iterator destination

ios_format

stream formatting state

fill

fill character for padding

value

decimal value to format

Created with MrDocs