Namespaces
Variants
Views
Actions

std::money_base

From cppreference.com
< cpp‎ | locale
Revision as of 18:34, 2 November 2012 by P12bot (Talk | contribs)

Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <locale>
</td>

<td></td> <td></td> <tr class="t-dcl ">

<td class="t-dcl-nopad">
class money_base;
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end

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 position, where whitespace is not permitted
space one or more whitespace characters are required
symbol the sequence of characters returned by moneypunct::curr_symbol is required
sign the first of the characters returned by moneypunct::positive_sign or moneypunct::negative_sign is required
value the absolute numeric monetary value is required

Notes

The monetary format is an array of four chars convertible to std::money_base::part. In that sequence, each of symbol, sign, and value appears exactly once, and either space or none appears in the remaining position. The default format, returned by the standard specializations of std::moneypunct is {symbol, sign, none, value}

See also

Template:cpp/locale/dcl list moneypunctTemplate:cpp/locale/dcl list money getTemplate:cpp/locale/dcl list money put