The classstd::money_base provides constants which are inherited and used by thestd::moneypunct,std::money_get andstd::money_put facets.
[edit]Member types
| 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 position, where whitespace is not permitted |
space | one or more whitespace characters are required |
symbol | the sequence of characters returned bymoneypunct::curr_symbol is required |
sign | the first of the characters returned bymoneypunct::positive_sign ormoneypunct::negative_sign is required |
value | the absolute numeric monetary value is required |
The monetary format is an array of fourchars convertible tostd::money_base::part. In that sequence, each ofsymbol,sign, andvalue appears exactly once, and eitherspace ornone appears in the remaining position. The valuenone, if present, is not first; the valuespace, if present, is neither first nor last.
The default format, returned by the standard specializations ofstd::moneypunct is{symbol, sign, none, value}.
[edit]See also
| defines monetary formatting parameters used bystd::money_get andstd::money_put (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] |