std::money_base

Defined in header <locale> class money_base; The class std::money_base provides constants which are inherited and used by the std::moneypunct, std::money_get and std::money_put facets. Member types Member type Definition enum part { none, space, symbol, sign, value }; unscoped enumeration type struct pattern { char field[4]; }; the monetary format type Enumeration constant Definition none whitespace is permitted but not required except in the last po

std::moneypunct_byname

Defined in header <locale> template< class CharT, bool Intl = false > class moneypunct_byname : public std::moneypunct<CharT, Intl>; std::moneypunct_byname is a std::moneypunct facet which encapsulates monetary formatting preferences of a locale specified at its construction. Two specializations are provided by the standard library. Defined in header <locale> std::moneypunct_byname<char, Intl> locale-specific std::moneypunct facet for narrow ch

std::moneypunct::thousands_sep

Defined in header <locale> public: char_type thousands_sep() const; (1) protected: virtual char_type do_thousands_sep() const; (2) 1) Public member function, calls the member function do_thousands_sep of the most derived class. 2) Returns the character to be used as the separator between digit groups when parsing or formatting the integral parts of monetary values. Return value The object of type char_type to use as the thousands separator. In common U.S. locale

std::moneypunct::pos_format

Defined in header <locale> public: pattern pos_format() const; (1) public: pattern neg_format() const; (2) protected: virtual pattern do_pos_format() const; (3) protected: virtual pattern do_neg_format() const; (4) 1) Public member function, calls the member function do_pos_format of the most derived class. 2) Public member function, calls the member function do_neg_format of the most derived class. 3) Returns the format structure (of type std::money_ba

std::moneypunct::positive_sign

Defined in header <locale> public: string_type positive_sign() const; (1) public: string_type negative_sign() const; (2) protected: virtual string_type do_positive_sign() const; (3) protected: virtual string_type do_negative_sign() const; (4) 1) Public member function, calls the member function do_positive_sign of the most derived class. 2) Public member function, calls the member function do_negative_sign of the most derived class. 3) Returns the strin

std::moneypunct::moneypunct

Defined in header <locale> explicit moneypunct( std::size_t refs = 0 ); Creates a std::moneypunct facet and forwards the starting reference count refs to the base class constructor, locale::facet::facet(). Parameters refs - starting reference count

std::moneypunct::grouping

Defined in header <locale> public: std::string grouping() const; (1) protected: virtual std::string do_grouping() const; (2) 1) Public member function, calls the member function do_grouping of the most derived class. 2) Returns the pattern that determines the grouping of the digits in the monetary output, with the same exact meaning as std::numpunct::do_grouping Return value The object of type std::string holding the groups. The standard specializations of std::

std::moneypunct::frac_digits

Defined in header <locale> public: int frac_digits() const; (1) protected: virtual int do_frac_digits() const; (2) 1) Public member function, calls the member function do_frac_digits of the most derived class. 2) Returns the number of digits to be displayed after the decimal point when printing monetary values Return value The number of digits to be displayed after the decimal point. In common U.S. locales, this is the value 2. Example #include <locale>

std::moneypunct::decimal_point

Defined in header <locale> public: CharT decimal_point() const; (1) protected: virtual CharT do_decimal_point() const; (2) 1) Public member function, calls the member function do_decimal_point of the most derived class. 2) Returns the character to use as the decimal point separator in monetary I/O if the format uses fractions (that is, if do_frac_digits() is greater than zero). For typical U.S. locales, it is the character '.' (or L'.') Return value The object of

std::moneypunct::curr_symbol

Defined in header <locale> public: string_type curr_symbol() const; (1) protected: virtual string_type do_curr_symbol() const; (2) 1) Public member function, calls the member function do_curr_symbol of the most derived class. 2) Returns the string used as the currency identifier by this locale. If International (the second template parameter of std::moneypunct) is false, the identifier is usually a single (wide) character, such as "¥" or "$". If International is tru