Reference
C Library
IOstream Library
Strings library
STL Containers
STL Algorithms
Miscellaneous
Miscellaneous
complex
exception
functional
iterator
limits
locale
memory
new
numeric
stdexcept
typeinfo
utility
valarray
locale
has_facet
isalnum
isalpha
iscntrl
isdigit
isgraph
islower
isprint
ispunct
isspace
isupper
isxdigit
locale
tolower
toupper
use_facet
standard facets:
codecvt
codecvt_base
codecvt_byname
collate
collate_byname
ctype
ctype_base
ctype_byname
messages
messages_base
messages_byname
moneypunct
moneypunct_byname
money_base
money_get
money_put
numpunct
numpunct_byname
num_get
num_put
time_base
time_get
time_get_byname
time_put
time_put_byname
numpunct
numpunct::numpunct
public member functions:
numpunct::decimal_point
numpunct::falsename
numpunct::grouping
numpunct::thousands_sep
numpunct::truename
public member types:
numpunct::char_type
numpunct::string_type
protected members:
numpunct::do_decimal_point
numpunct::do_falsename
numpunct::do_grouping
numpunct::do_thousands_sep
numpunct::do_truename
numpunct::~numpunct


numpunct

class template
<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:


Along with the following public member types:


Virtual protected members

The class defines the virtual protected members in charge of implementing the expected behavior of their corresponding public member functions:

Along with the class destructor:

numpunct specializations: numpunct<char> and numpunct<wchar_t>

Two standard specializations define the standard behavior for the char and wchar_t types.