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

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

πŸ’– NAME πŸ’–

okay so bestie, this is std::hash(std::experimental::propagate_const) from the C++ Standard Libary manual, and the NAME section is literally serving std::hash(std::experimental::propagate_const) β€” std::hash(std::experimental::propagate_const) again. yes, it says it twice. iconic, no notes. πŸ’…

✨ Synopsis ✨

here’s the synopsis vibe, kept exactly:

          Defined in header <experimental/propagate_const>
          template< class T > struct
       (library fundamentals
          hash<std::experimental::propagate_const<T>>;                   TS v2)

so yeah, that’s the whole synopsis. The template specialization of std::hash for std::experimental::propagate_const<T> allows users to obtain hashes of objects of type std::experimental::propagate_const<T>. slay. πŸ”₯

For a given std::experimental::propagate_const<T> p, this specialization ensures that

std::hash<std::experimental::propagate_const<T>>()(p) ==
std::hash<T>()(p.t_),

where p.t_ is the pointer-like object wrapped by p. periodt. 🫢

πŸŽ€ Example πŸŽ€

This section is incomplete 😭

Reason: no example

not a single example. we move. πŸ™ˆ

πŸ‘€ See also πŸ‘€

  • hash β€” hash function object (C++11) (class template)

🏷️ Category 🏷️

  • Todo no example

k bye bestie πŸ’– β€” source/version: http://cppreference.com, date: 2024.06.10, page signature: std::hash(s...agate_const)(3). πŸŽ€βœ¨

πŸ“¦ where this page comes from