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 astd::size_t, iconic.typedef std::size_t result_typeβ the type she hands back. alsostd::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_tagain. 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__numand__den, does her little hashing thing, and returns aresult_type. she'sconst(she does NOT change herself for anyone π ) and she'snoexcept(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
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms