std::__detail::...k_range_hashing(3cxx)

πŸ’– std::__detail::_Mask_range_hashing β€” a 3cxx girlypop moment πŸ’–

okay bestie, welcome to the 3cxx manual, and today's main character is std::__detail::_Mask_range_hashing ✨ she's a range hashing function, and her whole thing is assuming that the second arg is a power of 2. that's it. that's the vibe. πŸ‘‘


🌸 NAME 🌸

std::__detail::_Mask_range_hashing β€” Range hashing function assuming that second arg is a power of 2.

like, literally what it says on the tin, no cap. 🫢


✨ SYNOPSIS ✨

#include <hashtable_policy.h>

so you gotta pull in hashtable_policy.h first, otherwise she doesn't exist. periodt. πŸ’…

πŸŽ€ Public Types πŸŽ€

  • typedef std::size_t first_argument_type β€” the type of the first thing you hand her. it's a std::size_t, iconic.
  • typedef std::size_t result_type β€” the type she hands back. also std::size_t. she's consistent like that πŸ’–
  • typedef std::size_t second_argument_type β€” the type of the second thing you hand her. yeah bestie, std::size_t again. she has a type. 🌸

πŸ¦‹ Public Member Functions πŸ¦‹

  • result_type operator() (first_argument_type __num, second_argument_type __den) const noexcept β€” the one (1) actual move she does. she takes __num and __den, does her little hashing thing, and returns a result_type. she's const (she does NOT change herself for anyone πŸ’…) and she's noexcept (she does not do drama, no throwing, we love a low-maintenance queen). πŸ”₯

πŸ‘‘ Detailed Description πŸ‘‘

Range hashing function assuming that second arg is a power of 2.

that's the whole description bestie, she's mysterious, she's efficient, she's giving "i said what i said". the __den has to be a power of 2 or the whole premise is lowkey not it. 🌈


πŸ’œ Author πŸ’œ

Generated automatically by Doxygen for libstdc++ from the source code.

so like, nobody wrote this by hand, it's Doxygen doing its little robot thing for libstdc++ and honestly? slay, werk, we respect the automation. πŸ€–βœ¨


and that's the tea, bestie β€” this page came straight out of libstdc++ via Doxygen (auto-generated, as the author section says), and it's living in the 3cxx manual for you whenever you need her. go forth, hash responsibly, and remember: power of 2 or don't bother. πŸŽ€πŸ’–πŸ¦‹β­

πŸ“¦ where this page comes from