std::time_get
| Defined in header <locale>
|
||
| template< class CharT, |
||
Class template std::time_get encapsulates date and time parsing rules. The I/O manipulator std::get_time uses the std::time_get facet of the I/O stream's locale to convert text input to a std::tm object.
Inheritance diagram
If a std::time_get specialization is not guaranteed to be provided by the standard library (see below), the behaviors of its member functions (except the constructor and destructor) are not guaranteed as specified.
Contents |
[edit] Specializations
The standard library is guaranteed to provide the following specializations (they are required to be implemented by any locale object):
| Defined in header
<locale> | |
| std::time_get<char> | parses narrow string representations of date and time |
| std::time_get<wchar_t> | parses wide string representations of date and time |
In addition, the standard library is also guaranteed to provide every specialization that satisfies the following type requirements:
-
CharTis one of char and wchar_t, and -
InputItmust meet the requirements of LegacyInputIterator.