.TH "std::time_put< _CharT, _OutIter >" 3cxx "Thu Aug 2 2012" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::time_put< _CharT, _OutIter > \- .SH SYNOPSIS .br .PP .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 "typedef _CharT \fBchar_type\fP" .br .ti -1c .RI "typedef _OutIter \fBiter_type\fP" .br .in -1c .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBiter_type\fP \fBput\fP (\fBiter_type\fP __s, \fBios_base\fP &__io, \fBchar_type\fP __fill, const tm *__tm, const _CharT *__beg, const _CharT *__end) const " .br .ti -1c .RI "\fBiter_type\fP \fBput\fP (\fBiter_type\fP __s, \fBios_base\fP &__io, \fBchar_type\fP __fill, const tm *__tm, char __format, char __mod=0) const " .br .ti -1c .RI "\fBtime_put\fP (size_t __refs=0)" .br .in -1c .SS "Static Public Attributes" .in +1c .ti -1c .RI "static \fBlocale::id\fP \fBid\fP" .br .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "virtual \fBiter_type\fP \fBdo_put\fP (\fBiter_type\fP __s, \fBios_base\fP &__io, \fBchar_type\fP __fill, const tm *__tm, char __format, char __mod) const " .br .ti -1c .RI "virtual \fB~time_put\fP ()" .br .in -1c .SS "Static Protected Member Functions" .in +1c .ti -1c .RI "static __c_locale \fB_S_clone_c_locale\fP (__c_locale &__cloc)" .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 ()" .br .in -1c .SH "Detailed Description" .PP .SS "templateclass std::time_put< _CharT, _OutIter >" Facet for outputting dates and times\&. This facet encapsulates the code to format and output dates and times according to formats used by strftime()\&. .PP The \fBtime_put\fP 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 \fBtime_put\fP facet\&. .PP Definition at line 702 of file locale_facets_nonio\&.h\&. .SH "Member Typedef Documentation" .PP .SS "template typedef _CharT \fBstd::time_put\fP< _CharT, _OutIter >::\fBchar_type\fP" .PP Public typedefs\&. .PP Definition at line 708 of file locale_facets_nonio\&.h\&. .SS "template typedef _OutIter \fBstd::time_put\fP< _CharT, _OutIter >::\fBiter_type\fP" .PP Public typedefs\&. .PP Definition at line 709 of file locale_facets_nonio\&.h\&. .SH "Constructor & Destructor Documentation" .PP .SS "template \fBstd::time_put\fP< _CharT, _OutIter >::\fBtime_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 \fIrefs\fP Passed to the base facet class\&. .RE .PP .PP Definition at line 723 of file locale_facets_nonio\&.h\&. .SS "template virtual \fBstd::time_put\fP< _CharT, _OutIter >::~\fBtime_put\fP ()\fC [inline]\fP, \fC [protected]\fP, \fC [virtual]\fP" .PP Destructor\&. .PP Definition at line 769 of file locale_facets_nonio\&.h\&. .SH "Member Function Documentation" .PP .SS "template _OutIter \fBstd::time_put\fP< _CharT, _OutIter >::do_put (\fBiter_type\fP__s, \fBios_base\fP &__io, \fBchar_type\fP__fill, const tm *__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 \fBput()\fP for more details\&. .RE .PP \fBParameters:\fP .RS 4 \fIs\fP The stream to write to\&. .br \fIio\fP Source of locale\&. .br \fIfill\fP char_type to use for padding\&. .br \fItm\fP Struct tm with date and time info to format\&. .br \fIformat\fP Format char\&. .br \fImod\fP Optional modifier char\&. .RE .PP \fBReturns:\fP .RS 4 Iterator after writing\&. .RE .PP .PP Definition at line 1134 of file locale_facets_nonio\&.tcc\&. .PP References std::ios_base::_M_getloc(), and std::__ctype_abstract_base< _CharT >::widen()\&. .SS "template _OutIter \fBstd::time_put\fP< _CharT, _OutIter >::put (\fBiter_type\fP__s, \fBios_base\fP &__io, \fBchar_type\fP__fill, const tm *__tm, const _CharT *__beg, const _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 \fIs\fP The stream to write to\&. .br \fIio\fP Source of locale\&. .br \fIfill\fP char_type to use for padding\&. .br \fItm\fP Struct tm with date and time info to format\&. .br \fIbeg\fP Start of format string\&. .br \fIend\fP End of format string\&. .RE .PP \fBReturns:\fP .RS 4 Iterator after writing\&. .RE .PP .PP Definition at line 1099 of file locale_facets_nonio\&.tcc\&. .PP References std::ios_base::_M_getloc(), and std::__ctype_abstract_base< _CharT >::narrow()\&. .SS "template \fBiter_type\fP \fBstd::time_put\fP< _CharT, _OutIter >::put (\fBiter_type\fP__s, \fBios_base\fP &__io, \fBchar_type\fP__fill, const tm *__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 \fBtime_put::do_put()\fP\&. .PP \fBParameters:\fP .RS 4 \fIs\fP The stream to write to\&. .br \fIio\fP Source of locale\&. .br \fIfill\fP char_type to use for padding\&. .br \fItm\fP Struct tm with date and time info to format\&. .br \fIformat\fP Format char\&. .br \fImod\fP Optional modifier char\&. .RE .PP \fBReturns:\fP .RS 4 Iterator after writing\&. .RE .PP .PP Definition at line 762 of file locale_facets_nonio\&.h\&. .SH "Member Data Documentation" .PP .SS "template \fBlocale::id\fP \fBstd::time_put\fP< _CharT, _OutIter >::id\fC [static]\fP" .PP Numpunct facet id\&. .PP Definition at line 713 of file locale_facets_nonio\&.h\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.