Standard C++ Library Reference ISO/IEC (VERSION3)
instances of fac.thousands_sep() are generated in the value portion of the monetary output field (where the
element equal to money_base::value appears in the format pattern). If fac.frac_digits() is zero, then no
instance of fac.decimal_point() is generated after the decimal digits. Otherwise, the resulting monetary output
field places the low-order fac.frac_digits() decimal digits to the right of the decimal point.
Padding occurs as for any numeric output field, except that if iosbase.flags() & iosbase.internal is
nonzero, any internal padding is generated where the element equal to money_base::space appears in the format
pattern, if it does appear. Otherwise, internal padding occurs before the generated sequence. The padding character is
fill.
The function calls iosbase.width(0) to reset the field width to zero.
money_put::put
iter_type put(iter_type next, bool intl, ios_base& iosbase,
Elem fill, long double& val) const;
iter_type put(iter_type next, bool intl, ios_base& iosbase,
Elem fill, string_type& val) const;
Both member functions return do_put(next, intl, iosbase, fill, val).
money_put::iter_type
typedef InIt iter_type;
The type is a synonym for the template parameter OutIt.
money_put::money_put
explicit money_put(size_t refs = 0);
The constructor initializes its base object with locale::facet(refs).
money_put::string_type
typedef basic_string<Elem> string_type;
The type describes a specialization of template class basic_string whose objects can store sequences of elements
from the source sequence.
moneypunct
char_type · curr_symbol · decimal_point · do_curr_symbol · do_decimal_point ·
do_frac_digits · do_grouping · do_neg_format · do_negative_sign · do_pos_format ·
do_positive_sign · do_thousands_sep · frac_digits · grouping · moneypunct ·
neg_format · negative_sign · pos_format · positive_sign · string_type ·
thousands_sep
template<class Elem, bool Intl>
class moneypunct
: public locale::facet, public money_base {
public:
typedef Elem char_type;
typedef basic_string<Elem> string_type;