.TH "std::time_put< _CharT, _OutIter >" 3cxx "Mon May 22 2017" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::time_put< _CharT, _OutIter > \- Primary class template time_put\&. .PP This facet encapsulates the code to format and output dates and times according to formats used by strftime()\&. .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 .RI "Public typedefs\&. " .ti -1c .RI "typedef _OutIter \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 __refs=0)" .br .RI "Constructor performs initialization\&. " .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 .RI "Format and output a time or date\&. " .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 .RI "Format and output a time or date\&. " .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~time_put\fP ()" .br .RI "Destructor\&. " .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 .RI "Format and output a time or date\&. " .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::time_put< _CharT, _OutIter >" Primary class template time_put\&. .PP This facet encapsulates the code to format and output dates and times according to formats used by strftime()\&. 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\&. .PP Definition at line 795 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 801 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 802 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 \fI__refs\fP Passed to the base facet class\&. .RE .PP .PP Definition at line 816 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 862 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 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 Definition at line 1312 of file locale_facets_nonio\&.tcc\&. .PP References std::ios_base::_M_getloc(), and std::__ctype_abstract_base< _CharT >::widen()\&. .PP Referenced by std::time_put< _CharT, _OutIter >::put()\&. .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 \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 .PP Definition at line 1277 of file locale_facets_nonio\&.tcc\&. .PP References std::ios_base::_M_getloc(), std::time_put< _CharT, _OutIter >::do_put(), and std::__ctype_abstract_base< _CharT >::narrow()\&. .PP Referenced by std::time_get< _CharT, _InIter >::do_get()\&. .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 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 Definition at line 855 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 806 of file locale_facets_nonio\&.h\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.