std::__detail:...ult_ranged_hash(3cxx)
π NAME π
std::__detail::_Default_ranged_hash β the default ranged hash function, aka H π«Ά
okay so bestie, in principle this is supposed to be a function object composed from objects of type H1 and H2 such that h(k, N) = h2(h1(k), N), but that would mean making extra copies of h1 and h2. So instead we'll just use a tag to tell class template hashtable to do that composition. and honestly? iconic of it. β¨
πΈ SYNOPSIS πΈ
#include <hashtable_policy.h>
π¦ Detailed Description π¦
Default ranged hash function H. π
In principle it should be a function object composed from objects of type H1 and H2 such that h(k, N) = h2(h1(k), N), but that would mean making extra copies of h1 and h2. So instead we'll just use a tag to tell class template hashtable to do that composition.
no cap, that's the whole bit. it doesn't do the hashing, it just shows up with a tag and lets hashtable handle the composition β lowkey genius, highkey efficient, zero unnecessary copies. periodt. π
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. not a human, just vibes and tooling, and we respect the hustle. π€π
mwah π that's the whole page bestie β this lil' note came to you from libstdc++ by way of the 3cxx manual, and it was generated automatically by Doxygen from the source code (no date on this one, she's timeless β¨). stay hashing, stay slaying, and never make extra copies of h1 and h2 when a tag will do π«Άπ
π¦ 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