std::_Fnv_hash(3)
π std::_Fnv_hash π
okay so welcome to the manual page for std::_Fnv_hash, bestie β it's the dummy generic implementation (for sizeof(size_t) != 4, 8). yes she's literally a placeholder and she knows it. iconic of her tbh π
this whole thing lives in the Library Functions Manual, and we're gonna go through it together, no cap β¨
πΈ SYNOPSIS πΈ
Static Public Member Functions
the entire public-facing personality of this struct, right here:
static size_t hash (const char *__first, size_t __length)
that's it. that's the whole vibe check. one static function, hash, and she takes a const char *__first and a size_t __length and hands you back a size_t. slay π
π¦ Detailed Description π¦
the actual declaration goes like this, and yes you're reading it right:
template<size_t = sizeof(size_t)> struct std::_Fnv_hash< size_t >
lowkey the whole point: this is the Dummy generic implementation (for sizeof(size_t) != 4, 8). meaning when your size_t isn't 4 bytes and isn't 8 bytes, this is the one that shows up to the party π«Ά she's not the real FNV hash, she's the understudy, and honestly? main character energy anyway π
ngl the cutest part is that she knows exactly where she lives, because:
Definition at line 85 of file tr1_impl/functional_hash.h.
like, pinpointed. precise. we love an organized queen π
fr fr don't expect her to be the optimized one β the description says dummy generic implementation, so if you're on some wild sizeof(size_t) situation, that's the deal. no cap, that's just what the docs say π
π§ Author π§
Generated automatically by Doxygen for libstdc++ from the source code.
so nobody hand-wrote this one, the tooling did it β which is honestly so real of her πβ¨
and that's the whole page bestie!! no additional params, no surprises, just a tiny template struct doing her little dummy-generic thing π
sign-off time: this page came from libstdc++ and it's dated 21 Apr 2009 β a vintage queen honestly, we stan a 2009 icon πππ¦
π¦ where this page comes from
- nixpkgs unstable: std-man-pages 4.4.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms