<locale>
template <class charT> class num_put;
Numeric punctuation facet
|  |
numpunct |
The numpunct class provides information about the format of punctuation marks for numbers and the strings used to represent the true and false boolean values.
numpunct objects are prevented to be locally constructed by having a protected destructor. Only those installed in locale objects should be used through mechanisms such as use_facet.
This template class has one template parameter, representing the character type for which the facet returns information. This template parameter is referred in this entire reference as charT.
Public members
It includes the following public member functions:
decimal_point | Return decimal point character (public member function) |
thousands_sep | Return thousands separator character (public member function) |
grouping | Return grouping of digits (public member function) |
truename | Return string representing true (public member function) |
falsename | Return string representing false (public member function) |
Along with the following public member types:
char_type | Character type (public member type) |
Virtual protected members
The class defines the virtual protected members in charge of implementing the expected behavior of their corresponding public member functions:
do_decimal_point | Return decimal point character [virtual] (virtual protected member function) |
do_thousands_sep | Return thousands separator character [virtual] (virtual protected member function) |
do_grouping | Return grouping of digits [virtual] (virtual protected member function) |
do_truename | Return string representing true [virtual] (virtual protected member function) |
do_falsename | Return string representing false [virtual] (virtual protected member function) |
Along with the class destructor:
(destructor) | numpunct destructor (protected member function) |
numpunct specializations: numpunct<char> and numpunct<wchar_t>
Two standard specializations define the standard behavior for the char and wchar_t types.
|