std::_Fnv_hash(3)

πŸ“¦ version 4.4.0, in nixpkgs unstable

πŸ’… 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