名前空間
変種
操作

std::hash<std::chrono::year_month_weekday_last>

From cppreference.com
 
 
 
 
ヘッダー <chrono> で定義
template<> struct hash<std::chrono::year_month_weekday_last>;
(C++26以降)

The template specialization of std::hash for std::chrono::year_month_weekday_last allows users to obtain hashes of objects of type std::chrono::year_month_weekday_last. This specialization is enabled.

この特殊化の operator()noexcept です。

[編集] 注記

機能テストマクロ 規格 機能
__cpp_lib_chrono 202306L (C++26) std::chrono の値クラスに対するハッシュサポート

[編集] 関連項目

(C++11)
ハッシュ関数オブジェクト
(クラステンプレート) [編集]
English 日本語 中文(简体) 中文(繁體)