__GNU_PBDS::DIRECT_MOD_RANGE_HASHING(3cxx)
πΈ __gnu_pbds::direct_mod_range_hashing< Size_Type > β NAME π
okay so bestie, this whole page lives in the 3cxx manual section (that's the GNU C++ library corner of the man world, iykyk) and it's about:
__gnu_pbds::direct_mod_range_hashing< Size_Type > β a mod range-hashing class (uses the modulo function). That's literally it. Mod. Range. Hashing. She's an icon, she's iconic, she does the modulo thing β¨
π¦ SYNOPSIS
#include <hash_policy.hpp>
Inherits __gnu_pbds::detail::mod_based_range_hashing< Size_Type >. Yeah she got it from her mama π
π Public Types
typedef Size_Type size_typeβ the size type, no cap
π Public Member Functions
void swap (direct_mod_range_hashing< Size_Type > &other)β swaps withother, classic swap behaviour, slay
π Protected Member Functions
void notify_resized (size_type size)β gets told about a resize, lowkey importantsize_type operator() (size_type hash) constβ Transforms the__hashvaluehashinto a ranged-hash value (using a modulo operation). she does math fr fr π₯size_type range_hash (size_type s) constβ the range hashing itself, protected, so hands off unless you're family πvoid swap (mod_based_range_hashing &other)β the inherited swap, still here, still doing her thing
β¨ Detailed Description
template<typename Size_Type = std::size_t>
class __gnu_pbds::direct_mod_range_hashing< Size_Type >
"A mod range-hashing class (uses the modulo operation)." That's the whole personality. Default Size_Type is std::size_t, in case you were wondering, and you were wondering π«Ά
π Member Function Documentation
operator()
template<typename Size_Type = std::size_t> size_type
__gnu_pbds::direct_mod_range_hashing< Size_Type >::operator() (size_type
hash) const [inline], [protected]
Transforms the __hash value hash into a ranged-hash value (using a modulo operation). Inline, protected, and honestly kind of the main character here π
heads up: it's protected and inline β so don't come for her from the outside, she's not available like that π
π§ Author
Generated automatically by Doxygen for libstdc++ from the source code.
okay bestie that's the whole page, every flag, every type, everysize_type, everyswap, all of it, nothing skipped, periodt π
β¨ proud of you for reading a whole manpage β¨ β this was the libstdc++ 3cxx page for __gnu_pbds::direct_mod_range_hashing< Size_Type >, generated by Doxygen from the source code, and that's the cute little sign-off ππΈ
π¦ where this page comes from
- debian trixie: libstdc++-12-doc 12.4.0-5
- debian trixie: libstdc++-13-doc 13.3.0-16
- debian trixie: libstdc++-14-doc 14.2.0-19
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2.1
- ubuntu noble: libstdc++-11-doc 11.4.0-9ubuntu1
- ubuntu noble: libstdc++-11-doc 11.5.0-1ubuntu1~24.04.1
- ubuntu noble: libstdc++-12-doc 12.3.0-17ubuntu1
- ubuntu noble: libstdc++-12-doc 12.4.0-2ubuntu1~24.04.1
- ubuntu noble: libstdc++-13-doc 13.2.0-23ubuntu4
- ubuntu noble: libstdc++-13-doc 13.3.0-6ubuntu2~24.04.1
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- ubuntu noble: libstdc++-14-doc 14.2.0-4ubuntu2~24.04.1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1.1
- ubuntu questing: libstdc++-12-doc 12.5.0-6ubuntu1
- ubuntu questing: libstdc++-13-doc 13.4.0-4ubuntu1
- ubuntu questing: libstdc++-14-doc 14.3.0-8ubuntu1
- ubuntu questing: libstdc++-15-doc 15.2.0-4ubuntu4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms