Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      Deduction guides forstd::chrono::zoned_time

      From cppreference.com
      <cpp‎ |chrono‎ |zoned time
       
       
      Date and time library
       
       
      zoned_time()-> zoned_time<std::chrono::seconds>;
      (1)(since C++20)
      template<class Duration>

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

         -> zoned_time<std::common_type_t<Duration,std::chrono::seconds>>;
      (2)(since C++20)
      template<class TimeZonePtrOrName>
      zoned_time( TimeZonePtrOrName&&)-> zoned_time<std::chrono::seconds,/* see below */>;
      (3)(since 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>,/* see below */>;
      (4)(since 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>,/* see below */>;
      (5)(since 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>,/* see below */>;
      (6)(since C++20)

      These deduction guides normalizeDuration to a minimum resolution ofstd::chrono::seconds, and provide correct handling for time zone names specified using types convertible tostd::string_view.

      3-6) Ifstd::is_convertible_v<TimeZonePtrOrName,std::string_view> istrue, the deduced second template argument isconststd::chrono::time_zone*. Otherwise it isstd::remove_cvref_t<TimeZonePtrOrName>.
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/chrono/zoned_time/deduction_guides&oldid=161726"

      [8]ページ先頭

      ©2009-2026 Movatter.jp