std::moneypunct<CharT,International>::curr_symbol,do_curr_symbol (3) - Linux Manuals
std::moneypunct<CharT,International>::curr_symbol,do_curr_symbol: std::moneypunct<CharT,International>::curr_symbol,do_curr_symbol
NAME
std::moneypunct<CharT,International>::curr_symbol,do_curr_symbol - std::moneypunct<CharT,International>::curr_symbol,do_curr_symbol
Synopsis
Defined in header <locale>
public: (1)
string_type curr_symbol() const;
protected: (2)
virtual string_type do_curr_symbol() const;
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 true, the identifier is usually a four-character string holding the three-character ISO_4217 currency code followed by a space ("JPY " or "USD ")
Return value
The object of type string_type holding the currency symbol or code.
Example
// Run this code
Output:
See also
do_pos_format provides the formatting pattern for currency values
do_neg_format (virtual protected member function)
[virtual]