Standard C++ Library Reference ISO/IEC (VERSION3)
explicit moneypunct(size_t refs = 0);
Elem decimal_point() const;
Elem thousands_sep() const;
string grouping() const;
string_type curr_symbol() const;
string_type positive_sign() const;
string_type negative_sign() const;
int frac_digits() const;
pattern pos_format( oonst;
pattern neg_format() const;
static const bool intl = Intl;
static locale::id id;
protected:
~moneypunct();
virtual Elem do_decimal_point() const;
virtual Elem do_thousands_sep() const;
virtual string do_grouping() const;
virtual string_type do_curr_symbol() const;
virtual string_type do_positive_sign() const;
virtual string_type do_negative_sign() const;
virtual int do_frac_digits() const;
virtual pattern do_pos_format() const;
virtual pattern do_neg_format() const;
};
The template class describes an object that can serve as a locale facet, to desceibe the sequences of type Elem used to
represent a monetary input field or a monetary output field. If the template parameter Intl is true, international
conventions are observed.
As with any locale facet, the static object id has an initial stored value of zero. The first attempt to access its stored
value stores a unique positive value in id.
The const static object intl stores the value of the template parameter Intl.
moneypunct::char_type
typedef Elem char_type;
The type is a synonym for the template parameter Elem.
moneypunct::curr_symbol
string_type curr_symbol() const;
The member function returns do_curr_symbol().
moneypunct::decimal_point
Elem decimal_point() const;
The member function returns do_decimal_point().