std::hash(s...server_ptr)(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’– 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) β€” literally std::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