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
money_get
money_get::money_get
public member functions:
money_get::get
public member types:
money_get::char_type
money_get::iter_type
money_get::string_type
protected members:
money_get::do_get
money_get::~money_get


money_get

class template
<locale>
template <class charT, class InputIterator = istreambuf_iterator<charT> >
  class money_get;

Facet to parse monetary expressions

money_get

The money_get standard facet is used to parse sequences of characters to read monetary expressions into numerical values or strings of digits.

money_get 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 two template parameters, representing the character type and the iterator type. They are referred inside this entire reference as charT and InputIterator, respectively:
 
template <class charT, class InputIterator = istreambuf_iterator<charT> > money_get;


The class defines two member alias types for these types: money_get::char_type and money_get::iter_type, respectively.

The character type is the type of the characters in the sequence from which characters are to interpreted.

The iterator type is the type of the input iterators pointing to the beginning, end and final elements in the character sequence.
Notice that this defaults to the istreambuf_iterator type for the first template parameter charT, although the template can be instantiated for any other type of input iterator.

Public members

It includes the following public member functions:

And the following public member types:

Virtual protected members

The class defines a virtual protected member in charge of implementing the expected behavior of its corresponding public member function:

Along with the class destructor: