class
<locale>
std::money_base
Base class for moneypunct
This is not a facet type, but the base class that defines the part and pattern member type to be inherited by moneypunct facet classes.
It is defined as:
1 2 3 4 5
|
class money_base {
public:
enum part { none, space, symbol, sign, value };
struct pattern { char field[4]; };
};
|
Member types
member type | description |
part | An enum type whose values are used to set each of the elements of a pattern |
pattern | An array of four char elements, specifically designed to contain four part values |
Member constants
member constant | type | value | representation | notes |
none | money_base::part | 0 | Nothing. Can be expanded to whitespaces (unless it is the last specifier) | cannot be be the first specifier |
space | money_base::part | 1 | At least one white space, but can be expanded to more | can neither be the first nor last specifier |
symbol | money_base::part | 2 | Currency symbol | |
sign | money_base::part | 3 | Positive or negative sign | |
value | money_base::part | 4 | The numerical value of the monetary expression | |
Each pattern contains either one space element or one none element and exactly one of each of the others (symbol, sign and value) in some unspecified order that depends on the locale.