A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.cppreference.com/w/cpp/language/../algorithm/../locale/moneypunct.html below:

std::moneypunct - cppreference.com

template< class CharT, bool International = false >
class moneypunct;

The facet std::moneypunct encapsulates monetary value format preferences. Stream I/O manipulators std::get_money and std::put_money use std::moneypunct through std::money_get and std::money_put for parsing monetary value input and formatting monetary value output.

Inheritance diagram

[edit] Specializations

The standard library is guaranteed to provide the following specializations (they are required to be implemented by any locale object):

std::moneypunct<char> provides equivalents of the "C" locale preferences std::moneypunct<wchar_t> provides wide character equivalents of the "C" locale preferences std::moneypunct<char, true> provides equivalents of the "C" locale preferences, with international currency symbols std::moneypunct<wchar_t, true> provides wide character equivalents of the "C" locale preferences, with international currency symbols [edit] Nested types [edit] Data members Member Description std::locale::id id [static] the identifier of the facet const bool intl [static] International [edit] Member functions [edit] Protected member functions destructs a moneypunct facet
(protected member function) [edit] provides the character to use as decimal point
(virtual protected member function) [edit] provides the character to use as thousands separator
(virtual protected member function) [edit] provides the numbers of digits between each pair of thousands separators
(virtual protected member function) [edit] provides the string to use as the currency identifier
(virtual protected member function) [edit] provides the string to indicate a positive or negative value
(virtual protected member function) [edit] provides the number of digits to display after the decimal point
(virtual protected member function) [edit] provides the formatting pattern for currency values
(virtual protected member function) [edit] Inherited from std::money_base Nested types Type Definition enum part { none, space, symbol, sign, value }; unscoped enumeration type struct pattern { char field[4]; }; the monetary format type Enumeration constant Description none whitespace is permitted but not required except in the last position, where whitespace is not permitted space one or more whitespace characters are required symbol the sequence of characters returned by std::moneypunct::curr_symbol is required sign the first of the characters returned by std::moneypunct::positive_sign or std::moneypunct::negative_sign is required value the absolute numeric monetary value is required [edit] See also defines monetary formatting patterns
(class) [edit] represents the system-supplied std::moneypunct for the named locale
(class template) [edit] parses and constructs a monetary value from an input character sequence
(class template) [edit] formats a monetary value for output as a character sequence
(class template) [edit]

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4