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:
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 membersIt includes the following public member functions:
|(constructor)||money_get constructor (public member function)|
|get||Read monetary expression (public member function)|
And the following public member types:
|char_type||Character type (public member type)|
|iter_type||Iterator type (public member type)|
|string_type||String type (public member type)|
Virtual protected membersThe class defines a virtual protected member in charge of implementing the expected behavior of its corresponding public member function:
|do_get||Read monetary expression [virtual] (virtual protected member function)|
Along with the class destructor:
|(destructor)||money_get destructor (protected member function)|