template <class T>
size_t operator()(const shared_ptr<T>& key) const noexcept; // (1) C++26
template <class T>
size_t operator()(const weak_ptr<T>& key) const noexcept; // (2) C++26
概要
所有権ベースでのハッシュ値を取得する。
戻り値
return key.owner_hash();
バージョン
言語
- C++26