Standard C++ Library Reference ISO/IEC (VERSION3)

protected:
~time_get_byname();
};
The template class describes an object that can serve as a locale facet of type time_get<Elem, InIt>. Its behavior
is determined by the named locale locname. The constructor initializes its base object with time_get<Elem,
InIt>(refs).
time_put
template<class Elem, class OutIt = ostreambuf_iterator<Elem> >
class time_put : public locale::facet {
public:
typedef Elem char_type;
typedef OutIt iter_type;
explicit time_put(size_t refs = 0);
iter_type put(iter_type next, ios_base& iosbase,
char_type fill, const tm *pt, char fmt, char mod = 0) const;
iter_type put(iter_type next, ios_base& iosbase,
char_type fill, const tm *pt, const Elem *first, const Elem *last) const;
static locale::id id;
protected:
~time_put();
virtual iter_type do_put(iter_type next, ios_base& iosbase,
char_type fill, const tm *pt, char fmt, char mod = 0) const;
};
The template class describes an object that can serve as a locale facet, to control conversions of time values to sequences
of type Elem.
As with any locale facet, the static object id has an initial stored value of zero. The first attempt to access its stored
value stores a unique positive value in id.
time_put::char_type
typedef Elem char_type;
The type is a synonym for the template parameter Elem.
time_put::do_put
virtual iter_type do_put(iter_type next, ios_base& iosbase,
char_type fill, const tm *pt, char fmt, char mod = 0) const;
The virtual protected member function generates sequential elements beginning at next from time values stored in the
object *pt, of type tm. The function returns an iterator designating the next place to insert an element beyond the
generated output.
The output is generated by the same rules used by strftime, with a last argument of pt, for generating a series of
char elements into an array. (Each such char element is assumed to map to an equivalent element of type Elem by a
simple, one-to-one, mapping.) If mod equals zero, the effective format is "%F", where F is replaced by fmt. Otherwise,
the effective format is "%MF", where M is replaced by mod.
The parameter fill is not used.