Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::hash<std::chrono::duration>

      From cppreference.com
      <cpp‎ |chrono‎ |duration
       
       
      Date and time library
       
      std::chrono::duration
       
      Defined in header<chrono>
      template<class Rep,class Period>
      struct hash<std::chrono::duration<Rep, Period>>;
      (since C++26)

      The template specialization ofstd::hash forstd::chrono::duration allows users to obtain hashes of objects of typestd::chrono::duration<Rep, Period>. This specialization isenabled if and only if bothstd::hash<Rep> andstd::hash<Period> are enabled.

      [edit]Notes

      Feature-test macroValueStdFeature
      __cpp_lib_chrono202306L(C++26)Hashing support forstd::chrono value classes

      [edit]See also

      (C++11)
      hash function object
      (class template)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/chrono/duration/hash&oldid=157543"

      [8]ページ先頭

      ©2009-2025 Movatter.jp