std::chrono::parse
Min standard notice:
Header: <chrono>
Returns an object manip of unspecified type such that, given a std::basic_istream<CharT, Traits> object is, the expression is » manip calls from_stream (unqualified, to enable argument-dependent lookup) as follows:
# Declarations
template< class CharT, class Parsable >
/* unspecified */ parse( const CharT* fmt, Parsable& tp );
(since C++20)
template< class CharT, class Traits, class Alloc, class Parsable >
/* unspecified */ parse( const std::basic_string<CharT, Traits, Alloc>& fmt,
Parsable& tp );
(since C++20)
template< class CharT, class Traits, class Alloc, class Parsable >
/* unspecified */ parse( const CharT* fmt, Parsable& tp,
std::basic_string<CharT, Traits, Alloc>& abbrev );
(since C++20)
template< class CharT, class Traits, class Alloc, class Parsable >
/* unspecified */ parse( const std::basic_string<CharT, Traits, Alloc>& fmt,
Parsable& tp,
std::basic_string<CharT, Traits, Alloc>& abbrev );
(since C++20)
template< class CharT, class Parsable >
/* unspecified */ parse( const CharT* fmt, Parsable& tp,
std::chrono::minutes& offset );
(since C++20)
template< class CharT, class Traits, class Alloc, class Parsable >
/* unspecified */ parse( const std::basic_string<CharT, Traits, Alloc>& fmt,
Parsable& tp, std::chrono::minutes& offset );
(since C++20)
template< class CharT, class Traits, class Alloc, class Parsable >
/* unspecified */ parse( const CharT* fmt, Parsable& tp,
std::basic_string<CharT, Traits, Alloc>& abbrev,
std::chrono::minutes& offset );
(since C++20)
template< class CharT, class Traits, class Alloc, class Parsable >
/* unspecified */ parse( const std::basic_string<CharT, Traits, Alloc>& fmt,
Parsable& tp,
std::basic_string<CharT, Traits, Alloc>& abbrev,
std::chrono::minutes& offset );
(since C++20)
# Parameters
fmt: a format string (see below)tp: object to hold the parse resultabbrev: string to hold the time zone abbreviation or name corresponding to the %Z specifieroffset: duration to represent the offset from UTC corresponding to the %z specifier
# Example
This section is incompleteReason: no example
# Defect reports
| DR | Applied to | Behavior as published | Correct behavior |
|---|---|---|---|
| LWG 3554 | C++20 | overloads for plain null-terminated character type sequences were missing | added |