std::unorde...ash_function(3)

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

πŸ’… std::unordered_set::hash_function

okay so real talk, this page lives in the C++ Standard Library manual (yes the header literally calls it "Libary", we don't gatekeep typos here, it's iconic) and the page title is std::unorde...ash_function(3) β€” the terminal just did that thing where it truncates a long name, no thoughts head empty, but bestie it's std::unordered_set::hash_function, iykyk 🫢


✨ NAME ✨

std::unordered_set::hash_function β€” literally just std::unordered_set::hash_function, that's the whole name, she said what she said πŸ’…


🌸 Synopsis 🌸

hasher hash_function() const;  (since C++11)

so this bad boy returns the function that hashes the keys. that's it. that's the vibe. πŸ”₯

ngl the (since C++11) is doing a lot of work there β€” this member has been around since C++11 and it's not planning on leaving πŸŽ€

πŸ¦‹ Parameters πŸ¦‹

(none)

like, zero. no args. she takes nothing and gives everything, main character energy fr fr πŸ‘‘


🌈 Return value 🌈

The hash function. ✨


⭐ Complexity ⭐

Constant. β€” constant time bestie, we love a low-effort icon 🧚


πŸ’– See also πŸ’–

  • key_eq β€” returns the function used to compare keys for equality (public member function) 🌸

and that's the whole page, no cap!! this little cutie comes to you from http://cppreference.com, dated 2024.06.10 β€” mwah, go slay some hashing πŸ’œπŸŽ€πŸ¦‹

πŸ“¦ where this page comes from