.TH "std::time_put< _CharT, _OutIter >" 3cxx "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::time_put< _CharT, _OutIter > \- Primary class template time_put\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBstd::locale::facet\fP\&. .PP Inherited by \fBstd::time_put_byname< _CharT, _OutIter >\fP\&. .SS "Public Types" .PP .RI "\fB\fP" .br .in +1c .in +1c .ti -1c .RI "\fBtypedef\fP _CharT \fBchar_type\fP" .br .RI "Public typedefs\&. " .ti -1c .RI "\fBtypedef\fP \fB_OutIter\fP \fBiter_type\fP" .br .RI "Public typedefs\&. " .in -1c .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBtime_put\fP (size_t \fB__refs\fP=0)" .br .RI "Constructor performs initialization\&. " .ti -1c .RI "\fBiter_type\fP \fBput\fP (\fBiter_type\fP \fB__s\fP, \fBios_base\fP &\fB__io\fP, \fBchar_type\fP __fill, \fBconst\fP \fBtm\fP *\fB__tm\fP, char \fB__format\fP, char \fB__mod\fP=0) \fBconst\fP" .br .RI "Format and output a time or date\&. " .ti -1c .RI "\fBiter_type\fP \fBput\fP (\fBiter_type\fP \fB__s\fP, \fBios_base\fP &\fB__io\fP, \fBchar_type\fP __fill, \fBconst\fP \fBtm\fP *\fB__tm\fP, \fBconst\fP _CharT *\fB__beg\fP, \fBconst\fP _CharT *__end) \fBconst\fP" .br .RI "Format and output a time or date\&. " .in -1c .SS "Static Public Attributes" .in +1c .ti -1c .RI "\fBstatic\fP \fBlocale::id\fP \fBid\fP" .br .RI "Numpunct facet id\&. " .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "\fBvirtual\fP \fB~time_put\fP ()" .br .RI "Destructor\&. " .ti -1c .RI "\fBvirtual\fP \fBiter_type\fP \fBdo_put\fP (\fBiter_type\fP \fB__s\fP, \fBios_base\fP &\fB__io\fP, \fBchar_type\fP __fill, \fBconst\fP \fBtm\fP *\fB__tm\fP, char \fB__format\fP, char \fB__mod\fP) \fBconst\fP" .br .RI "Format and output a time or date\&. " .in -1c .SS "Static Protected Member Functions" .in +1c .ti -1c .RI "\fBstatic\fP __c_locale \fB_S_clone_c_locale\fP (__c_locale &\fB__cloc\fP) \fBthrow\fP ()" .br .ti -1c .RI "\fBstatic\fP \fBvoid\fP \fB_S_create_c_locale\fP (__c_locale &\fB__cloc\fP, \fBconst\fP char *\fB__s\fP, __c_locale \fB__old\fP=0)" .br .ti -1c .RI "\fBstatic\fP \fBvoid\fP \fB_S_destroy_c_locale\fP (__c_locale &\fB__cloc\fP)" .br .ti -1c .RI "\fBstatic\fP __c_locale \fB_S_get_c_locale\fP ()" .br .ti -1c .RI "\fBstatic\fP \fBconst\fP char * \fB_S_get_c_name\fP () \fBthrow\fP ()" .br .ti -1c .RI "\fBstatic\fP __c_locale \fB_S_lc_ctype_c_locale\fP (__c_locale \fB__cloc\fP, \fBconst\fP char *\fB__s\fP)" .br .in -1c .SH "Detailed Description" .PP .SS "template<\fBtypename\fP _CharT, \fBtypename\fP \fB_OutIter\fP> .br class std::time_put< _CharT, _OutIter >"Primary class template time_put\&. This facet encapsulates the code to format and output dates and times according to formats used by strftime()\&. .PP The time_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 time_put facet\&. .SH "Member Typedef Documentation" .PP .SS "template<\fBtypename\fP _CharT , \fBtypename\fP \fB_OutIter\fP > \fBtypedef\fP _CharT \fBstd::time_put\fP< _CharT, \fB_OutIter\fP >::char_type" .PP Public typedefs\&. .SS "template<\fBtypename\fP _CharT , \fBtypename\fP \fB_OutIter\fP > \fBtypedef\fP \fB_OutIter\fP \fBstd::time_put\fP< _CharT, \fB_OutIter\fP >::iter_type" .PP Public typedefs\&. .SH "Constructor & Destructor Documentation" .PP .SS "template<\fBtypename\fP _CharT , \fBtypename\fP \fB_OutIter\fP > \fBstd::time_put\fP< _CharT, \fB_OutIter\fP >::time_put (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 .SS "template<\fBtypename\fP _CharT , \fBtypename\fP \fB_OutIter\fP > \fBvirtual\fP \fBstd::time_put\fP< _CharT, \fB_OutIter\fP >::~\fBtime_put\fP ()\fC [inline]\fP, \fC [protected]\fP, \fC [virtual]\fP" .PP Destructor\&. .SH "Member Function Documentation" .PP .SS "template<\fBtypename\fP _CharT , \fBtypename\fP \fB_OutIter\fP > \fB_OutIter\fP \fBstd::time_put\fP< _CharT, \fB_OutIter\fP >::do_put (\fBiter_type\fP __s, \fBios_base\fP & __io, \fBchar_type\fP __fill, \fBconst\fP \fBtm\fP * __tm, char __format, char __mod) const\fC [protected]\fP, \fC [virtual]\fP" .PP Format and output a time or date\&. This function formats the data in struct tm according to the provided format char and optional modifier\&. This function is a hook for derived classes to change the value returned\&. .PP \fBSee also\fP .RS 4 put() for more details\&. .RE .PP \fBParameters\fP .RS 4 \fI__s\fP The stream to write to\&. .br \fI__io\fP Source of locale\&. .br \fI__fill\fP char_type to use for padding\&. .br \fI__tm\fP Struct tm with date and time info to format\&. .br \fI__format\fP Format char\&. .br \fI__mod\fP Optional modifier char\&. .RE .PP \fBReturns\fP .RS 4 Iterator after writing\&. .RE .PP .PP Referenced by \fBstd::time_put< _CharT, _OutIter >::put()\fP\&. .SS "template<\fBtypename\fP _CharT , \fBtypename\fP \fB_OutIter\fP > \fBiter_type\fP \fBstd::time_put\fP< _CharT, \fB_OutIter\fP >::put (\fBiter_type\fP __s, \fBios_base\fP & __io, \fBchar_type\fP __fill, \fBconst\fP \fBtm\fP * __tm, char __format, char __mod = \fC0\fP) const\fC [inline]\fP" .PP Format and output a time or date\&. This function formats the data in struct tm according to the provided format char and optional modifier\&. The format and modifier are interpreted as by strftime()\&. It does so by returning time_put::do_put()\&. .PP \fBParameters\fP .RS 4 \fI__s\fP The stream to write to\&. .br \fI__io\fP Source of locale\&. .br \fI__fill\fP char_type to use for padding\&. .br \fI__tm\fP Struct tm with date and time info to format\&. .br \fI__format\fP Format char\&. .br \fI__mod\fP Optional modifier char\&. .RE .PP \fBReturns\fP .RS 4 Iterator after writing\&. .RE .PP .PP References \fBstd::time_put< _CharT, _OutIter >::do_put()\fP\&. .SS "template<\fBtypename\fP _CharT , \fBtypename\fP \fB_OutIter\fP > \fB_OutIter\fP \fBstd::time_put\fP< _CharT, \fB_OutIter\fP >::put (\fBiter_type\fP __s, \fBios_base\fP & __io, \fBchar_type\fP __fill, \fBconst\fP \fBtm\fP * __tm, \fBconst\fP _CharT * __beg, \fBconst\fP _CharT * __end) const" .PP Format and output a time or date\&. This function formats the data in struct tm according to the provided format string\&. The format string is interpreted as by strftime()\&. .PP \fBParameters\fP .RS 4 \fI__s\fP The stream to write to\&. .br \fI__io\fP Source of locale\&. .br \fI__fill\fP char_type to use for padding\&. .br \fI__tm\fP Struct tm with date and time info to format\&. .br \fI__beg\fP Start of format string\&. .br \fI__end\fP End of format string\&. .RE .PP \fBReturns\fP .RS 4 Iterator after writing\&. .RE .PP .SH "Member Data Documentation" .PP .SS "template<\fBtypename\fP _CharT , \fBtypename\fP \fB_OutIter\fP > \fBlocale::id\fP \fBstd::time_put\fP< _CharT, \fB_OutIter\fP >::id\fC [static]\fP" .PP Numpunct facet id\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.