.TH "std::money_put< _CharT, _OutIter >" 3cxx "Sun Feb 7 2021" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::money_put< _CharT, _OutIter > \- Primary class template money_put\&. .SH SYNOPSIS .br .PP .PP Inherits \fBstd::locale::facet\fP\&. .SS "Public Types" .in +1c .ti -1c .RI "typedef _CharT \fBchar_type\fP" .br .RI "Public typedefs\&. " .ti -1c .RI "typedef _OutIter \fBiter_type\fP" .br .ti -1c .RI "typedef \fBbasic_string\fP< _CharT > \fBstring_type\fP" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBmoney_put\fP (size_t __refs=0)" .br .RI "Constructor performs initialization\&. " .ti -1c .RI "template _OutIter \fB_M_insert\fP (iter_type __s, \fBios_base\fP &__io, \fBchar_type\fP __fill, const \fBstring_type\fP &__digits) const" .br .ti -1c .RI "iter_type \fBput\fP (iter_type __s, bool __intl, \fBios_base\fP &__io, \fBchar_type\fP __fill, const \fBstring_type\fP &__digits) const" .br .RI "Format and output a monetary value\&. " .ti -1c .RI "iter_type \fBput\fP (iter_type __s, bool __intl, \fBios_base\fP &__io, \fBchar_type\fP __fill, long double __units) const" .br .RI "Format and output a monetary value\&. " .in -1c .SS "Static Public Attributes" .in +1c .ti -1c .RI "static \fBlocale::id\fP \fBid\fP" .br .RI "Numpunct facet id\&. " .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "virtual \fB~money_put\fP ()" .br .RI "Destructor\&. " .ti -1c .RI "template iter_type \fB_M_insert\fP (iter_type __s, \fBios_base\fP &__io, \fBchar_type\fP __fill, const \fBstring_type\fP &__digits) const" .br .ti -1c .RI "virtual iter_type \fBdo_put\fP (iter_type __s, bool __intl, \fBios_base\fP &__io, \fBchar_type\fP __fill, const \fBstring_type\fP &__digits) const" .br .RI "Format and output a monetary value\&. " .ti -1c .RI "virtual iter_type \fBdo_put\fP (iter_type __s, bool __intl, \fBios_base\fP &__io, \fBchar_type\fP __fill, long double __units) const" .br .RI "Format and output a monetary value\&. " .in -1c .SS "Static Protected Member Functions" .in +1c .ti -1c .RI "static __c_locale \fB_S_clone_c_locale\fP (__c_locale &__cloc) throw ()" .br .ti -1c .RI "static void \fB_S_create_c_locale\fP (__c_locale &__cloc, const char *__s, __c_locale __old=0)" .br .ti -1c .RI "static void \fB_S_destroy_c_locale\fP (__c_locale &__cloc)" .br .ti -1c .RI "static __c_locale \fB_S_get_c_locale\fP ()" .br .ti -1c .RI "static const char * \fB_S_get_c_name\fP () throw ()" .br .ti -1c .RI "static __c_locale \fB_S_lc_ctype_c_locale\fP (__c_locale __cloc, const char *__s)" .br .in -1c .SH "Detailed Description" .PP .SS "template .br class std::money_put< _CharT, _OutIter >" Primary class template money_put\&. This facet encapsulates the code to format and output a monetary amount\&. .PP 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\&. .PP Definition at line 1621 of file locale_facets_nonio\&.h\&. .SH "Member Typedef Documentation" .PP .SS "template typedef _CharT \fBstd::money_put\fP< _CharT, _OutIter >::\fBchar_type\fP" .PP Public typedefs\&. .PP Definition at line 1626 of file locale_facets_nonio\&.h\&. .SH "Constructor & Destructor Documentation" .PP .SS "template \fBstd::money_put\fP< _CharT, _OutIter >::\fBmoney_put\fP (size_t __refs = \fC0\fP)\fC [inline]\fP, \fC [explicit]\fP" .PP Constructor performs initialization\&. This is the constructor provided by the standard\&. .PP \fBParameters\fP .RS 4 \fI__refs\fP Passed to the base facet class\&. .RE .PP .PP Definition at line 1642 of file locale_facets_nonio\&.h\&. .SS "template virtual \fBstd::money_put\fP< _CharT, _OutIter >::~\fBmoney_put\fP ()\fC [inline]\fP, \fC [protected]\fP, \fC [virtual]\fP" .PP Destructor\&. .PP Definition at line 1692 of file locale_facets_nonio\&.h\&. .SH "Member Function Documentation" .PP .SS "template _OutIter \fBstd::money_put\fP< _CharT, _OutIter >::do_put (iter_type __s, bool __intl, \fBios_base\fP & __io, \fBchar_type\fP __fill, const \fBstring_type\fP & __digits) const\fC [protected]\fP, \fC [virtual]\fP" .PP Format and output a monetary value\&. This function formats \fIdigits\fP as a monetary value according to moneypunct and ctype facets retrieved from io\&.getloc(), and writes the resulting characters to \fI__s\fP\&. For example, the string \fC1001\fP in a US locale would write \fC$10\&.01\fP to \fI__s\fP\&. .PP This function is a hook for derived classes to change the value returned\&. .PP \fBSee also\fP .RS 4 put()\&. .RE .PP \fBParameters\fP .RS 4 \fI__s\fP The stream to write to\&. .br \fI__intl\fP Parameter to use_facet >\&. .br \fI__io\fP Source of facets and io state\&. .br \fI__fill\fP char_type to use for padding\&. .br \fI__digits\fP Place to store result of parsing\&. .RE .PP \fBReturns\fP .RS 4 Iterator after writing\&. .RE .PP .PP Definition at line 614 of file locale_facets_nonio\&.tcc\&. .SS "template _OutIter \fBstd::money_put\fP< _CharT, _OutIter >::do_put (iter_type __s, bool __intl, \fBios_base\fP & __io, \fBchar_type\fP __fill, long double __units) const\fC [protected]\fP, \fC [virtual]\fP" .PP Format and output a monetary value\&. This function formats \fIunits\fP as a monetary value according to moneypunct and ctype facets retrieved from io\&.getloc(), and writes the resulting characters to \fI__s\fP\&. For example, the value 1001 in a US locale would write \fC$10\&.01\fP to \fI__s\fP\&. .PP This function is a hook for derived classes to change the value returned\&. .PP \fBSee also\fP .RS 4 put()\&. .RE .PP \fBParameters\fP .RS 4 \fI__s\fP The stream to write to\&. .br \fI__intl\fP Parameter to use_facet >\&. .br \fI__io\fP Source of facets and io state\&. .br \fI__fill\fP char_type to use for padding\&. .br \fI__units\fP Place to store result of parsing\&. .RE .PP \fBReturns\fP .RS 4 Iterator after writing\&. .RE .PP .PP Definition at line 576 of file locale_facets_nonio\&.tcc\&. .PP References std::ios_base::getloc(), and std::__ctype_abstract_base< _CharT >::widen()\&. .PP Referenced by std::money_put< _CharT, _OutIter >::put()\&. .SS "template iter_type \fBstd::money_put\fP< _CharT, _OutIter >::put (iter_type __s, bool __intl, \fBios_base\fP & __io, \fBchar_type\fP __fill, const \fBstring_type\fP & __digits) const\fC [inline]\fP" .PP Format and output a monetary value\&. This function formats \fIdigits\fP as a monetary value according to moneypunct and ctype facets retrieved from io\&.getloc(), and writes the resulting characters to \fI__s\fP\&. For example, the string \fC1001\fP in a US locale would write \fC$10\&.01\fP to \fI__s\fP\&. .PP This function works by returning the result of do_put()\&. .PP \fBParameters\fP .RS 4 \fI__s\fP The stream to write to\&. .br \fI__intl\fP Parameter to use_facet >\&. .br \fI__io\fP Source of facets and io state\&. .br \fI__fill\fP char_type to use for padding\&. .br \fI__digits\fP Place to store result of parsing\&. .RE .PP \fBReturns\fP .RS 4 Iterator after writing\&. .RE .PP .PP Definition at line 1685 of file locale_facets_nonio\&.h\&. .PP References std::money_put< _CharT, _OutIter >::do_put()\&. .SS "template iter_type \fBstd::money_put\fP< _CharT, _OutIter >::put (iter_type __s, bool __intl, \fBios_base\fP & __io, \fBchar_type\fP __fill, long double __units) const\fC [inline]\fP" .PP Format and output a monetary value\&. This function formats \fIunits\fP as a monetary value according to moneypunct and ctype facets retrieved from io\&.getloc(), and writes the resulting characters to \fI__s\fP\&. For example, the value 1001 in a US locale would write \fC$10\&.01\fP to \fI__s\fP\&. .PP This function works by returning the result of do_put()\&. .PP \fBParameters\fP .RS 4 \fI__s\fP The stream to write to\&. .br \fI__intl\fP Parameter to use_facet >\&. .br \fI__io\fP Source of facets and io state\&. .br \fI__fill\fP char_type to use for padding\&. .br \fI__units\fP Place to store result of parsing\&. .RE .PP \fBReturns\fP .RS 4 Iterator after writing\&. .RE .PP .PP Definition at line 1662 of file locale_facets_nonio\&.h\&. .PP References std::money_put< _CharT, _OutIter >::do_put()\&. .SH "Member Data Documentation" .PP .SS "template \fBlocale::id\fP \fBstd::money_put\fP< _CharT, _OutIter >::id\fC [static]\fP" .PP Numpunct facet id\&. .PP Definition at line 1632 of file locale_facets_nonio\&.h\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.