std::hash(std::shared_ptr)
提供: cppreference.com
<tbody>
</tbody>
template<class T> struct hash<shared_ptr<T>>; |
(C++11以上) | |
std::hash の std::shared_ptr<T> に対するテンプレート特殊化は、ユーザが std::shared_ptr<T> 型のオブジェクトのハッシュを取得することを可能とします。
指定された std::shared_ptr<T> p に対して、この特殊化は以下が成り立つことを保証します。
|
|
(C++17未満) |
|
|
(C++17以上) |
例
| This section is incomplete Reason: no example |
関連項目
(C++11) |
ハッシュ関数オブジェクト (クラステンプレート) |