<locale>
template <class charT, class OutputIterator = ostreambuf_iterator<charT> > class money_put;
Facet to format monetary expressions
|  |
money_put |
The money_put standard facet is used to format monetary expressions as sequences of characters.
money_put 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 in this entire reference as charT and OutputIterator, respectively:
|
template <class charT, class OutputIterator = ostreambuf_iterator<charT> > money_put;
|
The class defines two member alias types for these types: num_put::char_type and num_put::iter_type, respectively.
The character type is the type of the characters to generate.
The iterator type is the type of the output iterators pointing to the beginning and final elements in a character sequence.
Notice that this defaults to the ostreambuf_iterator type for the first template parameter charT, although the template can be instantiated for any other type of output iterator.
Public members
It includes the following public member functions:
put | Format monetary expression (public member function) |
Along with the following public member types:
char_type | Character type (public member type) |
Virtual protected members
do_put | Format monetary expression [virtual] (virtual protected member function) |
(destructor) | money_put destructor (protected member function) |
|