std::money_put< _CharT, _OutIter > - Primary class template money_put.
Contents
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>virtualstd::money_put<_CharT,_OutIter>::~money_put()[inline],[protected],[virtual]
Destructor.
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.
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.
Member Data Documentation
template<typename_CharT,typename_OutIter>locale::idstd::money_put<_CharT,_OutIter>::id[static]
Numpunct facet id.
Member Function Documentation
template<typename_CharT,typename_OutIter>_OutIterstd::money_put<_CharT,_OutIter>::do_put(iter_type__s,bool__intl,ios_base&__io,char_type__fill,conststring_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.
Seealso
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>_OutIterstd::money_put<_CharT,_OutIter>::do_put(iter_type__s,bool__intl,ios_base&__io,char_type__fill,longdouble__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.
Seealso
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.
Referenced by std::money_put<_CharT,_OutIter>::put(), and std::money_put<_CharT,_OutIter>::put().
template<typename_CharT,typename_OutIter>iter_typestd::money_put<_CharT,_OutIter>::put(iter_type__s,bool__intl,ios_base&__io,char_type__fill,conststring_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.
References std::money_put<_CharT,_OutIter>::do_put().
template<typename_CharT,typename_OutIter>iter_typestd::money_put<_CharT,_OutIter>::put(iter_type__s,bool__intl,ios_base&__io,char_type__fill,longdouble__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.
References std::money_put<_CharT,_OutIter>::do_put().
Member Typedef Documentation
template<typename_CharT,typename_OutIter>typedef_CharTstd::money_put<_CharT,_OutIter>::char_type
Public typedefs.
template<typename_CharT,typename_OutIter>typedef_OutIterstd::money_put<_CharT,_OutIter>::iter_type
Public typedefs.
template<typename_CharT,typename_OutIter>typedefbasic_string<_CharT>std::money_put<_CharT,_OutIter>::string_type
Public typedefs.
Name
std::money_put< _CharT, _OutIter > - Primary class template money_put.
Synopsis
#include <locale>
Inherits std::locale::facet.
PublicTypestypedef _CharT char_type
Public typedefs.
typedef_OutIteriter_type
Public typedefs.
typedefbasic_string< _CharT > string_type
Public typedefs.
PublicMemberFunctionsmoney_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_typeput (iter_type__s, bool __intl, ios_base &__io, char_type __fill, const string_type &__digits)
const
Format and output a monetary value.
iter_typeput (iter_type__s, bool __intl, ios_base &__io, char_type __fill, long double __units) const
Format and output a monetary value.
StaticPublicAttributesstaticlocale::idid
Numpunct facet id.
ProtectedMemberFunctionsvirtual~money_put ()
Destructor.
template<bool _Intl> iter_type_M_insert (iter_type__s, ios_base &__io, char_type __fill, const
string_type &__digits) const
virtualiter_typedo_put (iter_type__s, bool __intl, ios_base &__io, char_type __fill, const string_type
&__digits) const
Format and output a monetary value.
virtualiter_typedo_put (iter_type__s, bool __intl, ios_base &__io, char_type __fill, long double
__units) const
Format and output a monetary value.
StaticProtectedMemberFunctionsstatic __c_locale _S_clone_c_locale (__c_locale &__cloc) throw ()
staticvoid_S_create_c_locale (__c_locale &__cloc, const char *__s, __c_locale __old=0)
staticvoid_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)
