std::money_put< _CharT, _OutIter >(3cxx) | std::money_put< _CharT, _OutIter >(3cxx) |
NAME¶
std::money_put< _CharT, _OutIter > -SYNOPSIS¶
Inherits std::locale::facet.Public Types¶
typedef _CharT char_type
Public Member Functions¶
money_put (size_t __refs=0)
Static Public Attributes¶
static locale::id id
Protected Member Functions¶
virtual ~money_put ()
Static Protected Member Functions¶
static __c_locale _S_clone_c_locale (__c_locale &__cloc) throw ()
Detailed Description¶
template<typename _CharT, typename _OutIter>class std::money_put< _CharT, _OutIter >¶
Primary class template money_put. This facet encapsulates the code to format and output a monetary amount.Member Typedef Documentation¶
template<typename _CharT , typename _OutIter > typedef _CharT std::money_put< _CharT, _OutIter >::char_type¶
Public typedefs. Definition at line 1526 of file locale_facets_nonio.h.template<typename _CharT , typename _OutIter > typedef _OutIter std::money_put< _CharT, _OutIter >::iter_type¶
Public typedefs. Definition at line 1527 of file locale_facets_nonio.h.template<typename _CharT , typename _OutIter > typedef basic_string<_CharT> std::money_put< _CharT, _OutIter >:: string_type¶
Public typedefs. Definition at line 1528 of file locale_facets_nonio.h.Constructor & Destructor Documentation¶
template<typename _CharT , typename _OutIter > std::money_put< _CharT, _OutIter >:: money_put (size_t__refs = 0) [inline], [explicit]¶
Constructor performs initialization. This is the constructor provided by the standard. Parameters:__refs Passed to the base facet
class.
template<typename _CharT , typename _OutIter > virtual std::money_put< _CharT, _OutIter >::~ money_put () [inline], [protected], [virtual]¶
Destructor. Definition at line 1592 of file locale_facets_nonio.h.Member Function Documentation¶
template<typename _CharT , typename _OutIter > _OutIter std::money_put< _CharT, _OutIter >::do_put ( iter_type__s, bool__intl, ios_base &__io, char_type__fill, long double__units) const [protected], [virtual]¶
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:put().
Parameters:
__s The stream to write to.
__intl Parameter to use_facet<moneypunct<CharT,intl> >.
__io Source of facets and io state.
__fill char_type to use for padding.
__units Place to store result of parsing.
Returns:
Iterator after writing.
template<typename _CharT , typename _OutIter > _OutIter std::money_put< _CharT, _OutIter >::do_put ( iter_type__s, bool__intl, ios_base &__io, char_type__fill, const string_type &__digits) const [protected], [virtual]¶
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:put().
Parameters:
__s The stream to write to.
__intl Parameter to use_facet<moneypunct<CharT,intl> >.
__io Source of facets and io state.
__fill char_type to use for padding.
__digits Place to store result of parsing.
Returns:
Iterator after writing.
template<typename _CharT , typename _OutIter > iter_type std::money_put< _CharT, _OutIter >::put (iter_type__s, bool__intl, ios_base &__io, char_type__fill, long double__units) const [inline]¶
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:__s The stream to write to.
__intl Parameter to use_facet<moneypunct<CharT,intl> >.
__io Source of facets and io state.
__fill char_type to use for padding.
__units Place to store result of parsing.
Returns:
Iterator after writing.
template<typename _CharT , typename _OutIter > iter_type std::money_put< _CharT, _OutIter >::put (iter_type__s, bool__intl, ios_base &__io, char_type__fill, const string_type &__digits) const [inline]¶
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:__s The stream to write to.
__intl Parameter to use_facet<moneypunct<CharT,intl> >.
__io Source of facets and io state.
__fill char_type to use for padding.
__digits Place to store result of parsing.
Returns:
Iterator after writing.
Member Data Documentation¶
template<typename _CharT , typename _OutIter > locale::id std::money_put< _CharT, _OutIter >::id [static]¶
Numpunct facet id. Definition at line 1532 of file locale_facets_nonio.h.Author¶
Generated automatically by Doxygen for libstdc++ from the source code.Sun Jan 6 2013 | libstdc++ |