Deduction guides for std::chrono::zoned_time
From cppreference.com
< cpp | chrono | zoned time
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)
Date and time library
(C++11)
(C++20)
(C++20)
(C++11)
(C++11)
(C++11)
(C++20)
(C++20)
(C++20)
(C++11)
(C++20)
(C++20)
(C++20)
(C++20)(C++20)
(C++20)(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)(C++20)
(C++20)
(C++20)
(C++20)
(C++20)(C++20)(C++20)(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
std::chrono::zoned_time
Member functions
Nonmember functions
Helper classes
(C++26)
Deduction guides
zoned_time() -> zoned_time<std::chrono::seconds >;
(1)
(since C++20)
template< class Duration >
(2)
(since C++20)
zoned_time( std::chrono::sys_time <Duration> )
template< class TimeZonePtrOrName >
zoned_time( TimeZonePtrOrName&& ) -> zoned_time<std::chrono::seconds, /* see below */>;
(3)
(since C++20)
zoned_time( TimeZonePtrOrName&& ) -> zoned_time<std::chrono::seconds, /* see below */>;
template< class TimeZonePtrOrName, class Duration >
(4)
(since C++20)
zoned_time( TimeZonePtrOrName&&, std::chrono::sys_time <Duration> )
template< class TimeZonePtrOrName, class Duration >
(5)
(since C++20)
zoned_time( TimeZonePtrOrName&&, std::chrono::local_time <Duration>,
std::chrono::choose = std::chrono::choose::earliest )
template< class TimeZonePtrOrName, class Duration, class TimeZonePtr2 >
(6)
(since C++20)
zoned_time( TimeZonePtrOrName&&, std::chrono::zoned_time <Duration, TimeZonePtr2>,
std::chrono::choose = std::chrono::choose::earliest )
These deduction guides normalize Duration
to a minimum resolution of std::chrono::seconds , and provide correct handling for time zone names specified using types convertible to std::string_view .
3-6) If std::is_convertible_v <TimeZonePtrOrName, std::string_view > is true, the deduced second template argument is const std::chrono::time_zone *. Otherwise it is std::remove_cvref_t <TimeZonePtrOrName>.