moneypunct Class
The template class describes an object that can serve as a locale facet to describe the sequences of type CharType used to represent a monetary input field or a monetary output field. If the template parameter Intl is true, international conventions are observed.
template<class CharType, bool Intl>
class moneypunct;
Parameters
CharType
The type used within a program to encode characters.Intl
A flag specifying whether international conventions are to be observed.
Remarks
As with any locale facet, the static object ID has an initial stored value of zero. The first attempt to access its stored value stores a unique positive value in id.
The const static object intl stores the value of the template parameter Intl.
Constructors
Constructor of objects of type moneypunct. |
Typedefs
A type that is used to describe a character used by a locale. |
|
A type that describes a string containing characters of type CharType. |
Member Functions
Returns a locale-specific sequence of elements to use as a currency symbol. |
|
Returns a locale-specific sequence of elements to use as a decimal point symbol. |
|
A protected virtual member function that returns a locale-specific sequence of elements to use as a currency symbol. |
|
A protected virtual member function that is called to return a locale-specific sequence of elements to use as a decimal point symbol. |
|
The protected virtual member function returns a locale-specific count of the number of digits to display to the right of any decimal point. |
|
The protected virtual member function returns a locale-specific rule for determining how digits are grouped to the left of any decimal point. |
|
A protected virtual member function that is called to return a locale-specific rule for formatting outputs with negative amounts. |
|
A protected virtual member function that is called to return a locale-specific sequence of elements to use as a negative sign symbol. |
|
A protected virtual member function that is called to return a locale-specific rule for formatting outputs with positive amounts. |
|
A protected virtual member function that is called to return a locale-specific sequence of elements to use as a positive sign symbol. |
|
A protected virtual member function that is called to return a locale-specific sequence of elements to use as a thousands separator symbol. |
|
Returns a locale-specific count of the number of digits to display to the right of any decimal point. |
|
Returns a locale-specific rule for determining how digits are grouped to the left of any decimal point. |
|
Returns a locale-specific rule for formatting outputs with negative amounts. |
|
Returns a locale-specific sequence of elements to use as a negative sign symbol. |
|
Returns a locale-specific rule for formatting outputs with positive amounts. |
|
Returns a locale-specific sequence of elements to use as a positive sign symbol. |
|
Returns a locale-specific sequence of elements to use as a thousands separator symbol. |
Requirements
Header: <locale>
Namespace: std