struct owner_hash;
(since C++26)This function object provides owner-based (as opposed to value-based) hashing of both std::weak_ptr and std::shared_ptr.
[edit] Nested types [edit] Member functions calculates the hash of the shared-ownership pointerEquivalent to return key.owner_hash();.
Parameters key - shared-ownership pointer to be hashed Return valueA hash value that is identical for any std::shared_ptr or std::weak_ptr object sharing the same ownership.
[edit] Notes [edit] See also provides owner-based hashing of shared pointersstd::shared_ptr<T>
) [edit] provides owner-based hashing of weak pointers
std::weak_ptr<T>
) [edit]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4