Namespaces
Variants

Deduction guides for std::chrono::zoned_time

From cppreference.net
(Anmerkung: Der bereitgestellte HTML-Code enthält keinen übersetzbaren Text, da alle Tags leer sind. Die Struktur bleibt unverändert, wie angefordert.)
zoned_time ( ) - > zoned_time < std:: chrono :: seconds > ;
(1) (seit C++20)
template < class Duration >

zoned_time ( std:: chrono :: sys_time < Duration > )

- > zoned_time < std:: common_type_t < Duration, std:: chrono :: seconds >> ;
(2) (seit C++20)
template < class TimeZonePtrOrName >
zoned_time ( TimeZonePtrOrName && ) - > zoned_time < std:: chrono :: seconds , /* siehe unten */ > ;
(3) (seit C++20)
template < class TimeZonePtrOrName, class Duration >

zoned_time ( TimeZonePtrOrName && , std:: chrono :: sys_time < Duration > )

- > zoned_time < std:: common_type_t < Duration, std:: chrono :: seconds > , /* siehe unten */ > ;
(4) (seit C++20)
template < class TimeZonePtrOrName, class Duration >

zoned_time ( TimeZonePtrOrName && , std:: chrono :: local_time < Duration > ,
std:: chrono :: choose = std :: chrono :: choose :: earliest )

- > zoned_time < std:: common_type_t < Duration, std:: chrono :: seconds > , /* siehe unten */ > ;
(5) (seit C++20)
template < class TimeZonePtrOrName, class Duration, class TimeZonePtr2 >

zoned_time ( TimeZonePtrOrName && , std:: chrono :: zoned_time < Duration, TimeZonePtr2 > ,
std:: chrono :: choose = std :: chrono :: choose :: earliest )

- > zoned_time < std:: common_type_t < Duration, std:: chrono :: seconds > , /* siehe unten */ > ;
(6) (seit C++20)

Diese Deduction Guides normalisieren Duration auf eine minimale Auflösung von std::chrono::seconds und bieten eine korrekte Handhabung für Zeitzonennamen, die mit Typen spezifiziert sind, die konvertierbar zu std:: string_view sind.

3-6) Wenn std:: is_convertible_v < TimeZonePtrOrName, std:: string_view > true ist, dann ist das abgeleitete zweite Template-Argument const std:: chrono :: time_zone * . Andernfalls ist es std:: remove_cvref_t < TimeZonePtrOrName > .