std::time_get_byname
From cppreference.com
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Text processing library
Regular expressions library (C++11)
Formatting library (C++20)
(C++17)
(C++17)
(C++17)
(C++17)
(C++17)
(C++26)
Localization library
time_get_byname
(C++11/17/26*)
(C++11/17/26*)
(C++11/17/26*)
(C++11/17/26*)
(C++11/17/26*)
(C++11/17/26*)
Defined in header
<locale>
template<
class CharT,
class InputIt = std::istreambuf_iterator <CharT>
std::time_get_byname
is a std::time_get facet which encapsulates time and date parsing rules of the locale specified at its construction.
Contents
[edit] Specializations
The standard library is guaranteed to provide every specialization that satisfies the following type requirements:
-
CharT
is one of char and wchar_t, and -
InputIt
must meet the requirements of LegacyInputIterator.
[edit] Nested types
Type
Definition
char_type
CharT
iter_type
InputIt
[edit] Member functions
std::time_get_byname::time_get_byname
explicit time_get_byname( const char* name, std::size_t refs = 0 );
explicit time_get_byname( const std::string & name, std::size_t refs = 0 );
(since C++11)
Constructs a new std::time_get_byname
facet for a locale with name.
refs is used for resource management: if refs == 0, the implementation destroys the facet, when the last std::locale object holding it is destroyed. Otherwise, the object is not destroyed.
Parameters
name
-
the name of the locale
refs
-
the number of references that link to the facet
std::time_get_byname::~time_get_byname
protected:
~time_get_byname();
~time_get_byname();
Destroys the facet.
Inherited from std::time_get
Nested types
Type
Definition
char_type
CharT
iter_type
InputIt
[edit] Data members
Member
Description
Member functions
Protected member functions
[virtual]
(virtual protected member function of
std::time_get<CharT,InputIt>
) [edit]
[virtual]
(virtual protected member function of
std::time_get<CharT,InputIt>
) [edit]
[virtual]
(virtual protected member function of
std::time_get<CharT,InputIt>
) [edit]
[virtual]
(virtual protected member function of
std::time_get<CharT,InputIt>
) [edit]
[virtual]
(virtual protected member function of
std::time_get<CharT,InputIt>
) [edit]
[virtual]
(virtual protected member function of
std::time_get<CharT,InputIt>
) [edit]
Inherited from std::time_base
Nested types
Type
Definition
dateorder
date order enumeration type, defining the values no_order
, dmy
, mdy
, ymd
, and ydm
[edit] Example
This section is incomplete
Reason: no example
Reason: no example