std::hash(s...server_ptr)(3)
π std::hash(std::experimental::observer_ptr) π
okay bestie, welcome to the C++ Standard Libary manual, section 3. yes, the manual name is folded in right here β we are not copying the whole header line, we are curating it. this page is about the std::hash specialization for std::experimental::observer_ptr, and it's lowkey iconic. iykyk β¨
π·οΈ NAME π·οΈ
std::hash(std::experimental::observer_ptr)β literallystd::hash(std::experimental::observer_ptr). that's the name, no extra lore, periodt.
β¨ SYNOPSIS β¨
Defined in header <experimental/memory> β put that in your notes, bestie.
Template vibes:
template< class T > struct
hash<std::experimental::observer_ptr<T>>;
and this is the (library fundamentals TS v2) flavor. π«Ά
πΈ DESCRIPTION πΈ
The template specialization of std::hash for std::experimental::observer_ptr<T> is the glow-up that allows users to obtain hashes of objects of type std::experimental::observer_ptr<T>. slay.
For a given std::experimental::observer_ptr<T> p, this specialization ensures that
std::hash<std::experimental::observer_ptr<T>>()(p) == std::hash<T*>()(p.get())
no cap, that equality is the whole point. π
π EXAMPLE π
- Status: This section is incomplete
- Reason: no example
not me showing up to the example section with no example π that's literally what the original says, so we're keeping the vibe exactly as it is.
π SEE ALSO π
hashβ hash function object(C++11)(class template)
ποΈ CATEGORY ποΈ
- Todo no example
okay that's the page, bestie π«Ά source: http://cppreference.com Β· version/date: 2024.06.10 Β· page: std::hash(s...server_ptr)(3). mwah πβ¨
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms