std::money_put< _CharT, _OutIter >(3cxx) | std::money_put< _CharT, _OutIter >(3cxx) |
std::money_put< _CharT, _OutIter > - Primary class template money_put.
This facet encapsulates the code to format and output a monetary amount.
Inherits std::locale::facet.
typedef _CharT char_type
Public typedefs. typedef _OutIter iter_type
Public typedefs. typedef basic_string< _CharT >
string_type
Public typedefs.
money_put (size_t __refs=0)
Constructor performs initialization. template<bool _Intl> _OutIter
_M_insert (iter_type __s, ios_base &__io,
char_type __fill, const string_type &__digits) const
iter_type put (iter_type __s, bool __intl,
ios_base &__io, char_type __fill, long double __units)
const
Format and output a monetary value. iter_type put
(iter_type __s, bool __intl, ios_base &__io,
char_type __fill, const string_type &__digits) const
Format and output a monetary value.
static locale::id id
Numpunct facet id.
virtual ~money_put ()
Destructor. template<bool _Intl> iter_type _M_insert
(iter_type __s, ios_base &__io, char_type __fill,
const string_type &__digits) const
virtual iter_type do_put (iter_type __s, bool __intl,
ios_base &__io, char_type __fill, long double __units)
const
Format and output a monetary value. virtual iter_type do_put
(iter_type __s, bool __intl, ios_base &__io,
char_type __fill, const string_type &__digits) const
Format and output a monetary value.
static __c_locale _S_clone_c_locale (__c_locale
&__cloc) throw ()
static void _S_create_c_locale (__c_locale &__cloc, const char
*__s, __c_locale __old=0)
static void _S_destroy_c_locale (__c_locale &__cloc)
static __c_locale _S_get_c_locale ()
static const char * _S_get_c_name () throw ()
static __c_locale _S_lc_ctype_c_locale (__c_locale __cloc, const char
*__s)
class std::money_put< _CharT, _OutIter >" Primary class template money_put.
This facet encapsulates the code to format and output a monetary amount.
The money_put template uses protected virtual functions to provide the actual results. The public accessors forward the call to the virtual functions. These virtual functions are hooks for developers to implement the behavior they require from the money_put facet.
Definition at line 1619 of file locale_facets_nonio.h.
Public typedefs.
Definition at line 1624 of file locale_facets_nonio.h.
Public typedefs.
Definition at line 1625 of file locale_facets_nonio.h.
Public typedefs.
Definition at line 1626 of file locale_facets_nonio.h.
Constructor performs initialization. This is the constructor provided by the standard.
Parameters:
Definition at line 1640 of file locale_facets_nonio.h.
Destructor.
Definition at line 1690 of file locale_facets_nonio.h.
Format and output a monetary value. This function formats units as a monetary value according to moneypunct and ctype facets retrieved from io.getloc(), and writes the resulting characters to __s. For example, the value 1001 in a US locale would write $10.01 to __s.
This function is a hook for derived classes to change the value returned.
See also:
Parameters:
Returns:
Definition at line 576 of file locale_facets_nonio.tcc.
References std::ios_base::getloc(), and std::__ctype_abstract_base< _CharT >::widen().
Referenced by std::money_get< _CharT, _InIter >::do_get().
Format and output a monetary value. This function formats digits as a monetary value according to moneypunct and ctype facets retrieved from io.getloc(), and writes the resulting characters to __s. For example, the string 1001 in a US locale would write $10.01 to __s.
This function is a hook for derived classes to change the value returned.
See also:
Parameters:
Returns:
Definition at line 614 of file locale_facets_nonio.tcc.
Format and output a monetary value. This function formats units as a monetary value according to moneypunct and ctype facets retrieved from io.getloc(), and writes the resulting characters to __s. For example, the value 1001 in a US locale would write $10.01 to __s.
This function works by returning the result of do_put().
Parameters:
Returns:
Definition at line 1660 of file locale_facets_nonio.h.
Format and output a monetary value. This function formats digits as a monetary value according to moneypunct and ctype facets retrieved from io.getloc(), and writes the resulting characters to __s. For example, the string 1001 in a US locale would write $10.01 to __s.
This function works by returning the result of do_put().
Parameters:
Returns:
Definition at line 1683 of file locale_facets_nonio.h.
Numpunct facet id.
Definition at line 1630 of file locale_facets_nonio.h.
Generated automatically by Doxygen for libstdc++ from the source code.
Mon Feb 25 2019 | libstdc++ |