class template
<locale>
std::time_put_byname
template <class charT, class OutputIterator = ostreambuf_iterator<charT> > class time_put_byname;
Facet to format dates and times
The time_put_byname standard facet overrides time_put virtual members to implement its semantics for particular named locales.
Its public interface is the same as time_put's, except that its constructor takes an additional std_name argument:
1
|
explicit time_put_byname (const char* std_name, size_t refs = 0);
|
1 2
|
explicit time_put_byname (const char* std_name, size_t refs = 0);
explicit time_put_byname (const string& std_name, size_t refs = 0);
|
Where std_name is the name of a C locale. The C locales available depend on the system and library implementation, but at least the following are guaranteed to exist on all implementations:
locale name | description |
"C" | Minimal "C" locale (the same as locale::classic) |
"" | The environment's default locale |
Specializations
At least the following partial specializations of this template are provided in all library implementations:
specialization |
template <class OutputIterator> time_put_byname<char,OutputIterator> |
template <class OutputIterator> time_put_byname<wchar_t,OutputIterator> |
Where OutputIterator shall be a type that satisfies the requirements of an output iterator able to iterate over elements of the specified character type.