__GNU_PBDS::DIRECT_MASK_RANGE_HASHING(3cxx)
okay bestie, welcome to the 3cxx manual page for __gnu_pbds::direct_mask_range_hashing< Size_Type > β yes, the name is a whole mouthful, and yes, she's iconic π
. The official vibe is A mask range-hashing class (uses a bitmask). Periodt.
πΈ NAME πΈ
__gnu_pbds::direct_mask_range_hashing< Size_Type > β a mask range-hashing class (uses a bitmask).
β¨ SYNOPSIS β¨
#include <hash_policy.hpp>
Inherits __gnu_pbds::detail::mask_based_range_hashing< Size_Type >.
π Public Types π
typedef Size_Type size_typeβ the size type is literallySize_Type, no cap.
π«Ά Public Member Functions π«Ά
void swap (direct_mask_range_hashing< Size_Type > &other)β swaps this one withother. Classic swap energy, lowkey essential.
π Protected Member Functions π
void notify_resized (size_type size)β protected resize notification, iykyk.size_type operator() (size_type hash) constβ transforms the__hashvaluehashinto a ranged-hash value (using a bit-mask). Yes bestie, bit-mask behavior, exactly as advertised π₯.size_type range_hash (size_type hash) constβ protected range-hash helper.void swap (mask_based_range_hashing &other)β protected swap with anothermask_based_range_hashing.
π¦ DETAILED DESCRIPTION π¦
The class is templated like this, with std::size_t as the default:
template<typename Size_Type = std::size_t>
class __gnu_pbds::direct_mask_range_hashing< Size_Type >"A mask range-
hashing class (uses a bitmask).
So yeah: template<typename Size_Type = std::size_t>, class __gnu_pbds::direct_mask_range_hashing< Size_Type >, and the description is that mask range-hashing line. It's giving bitmask realness π.
β MEMBER FUNCTION DOCUMENTATION β
Here's the one member function that gets its own documentation section:
template<typename Size_Type = std::size_t> size_type
__gnu_pbds::direct_mask_range_hashing< Size_Type >::operator()
(size_type hash) const [inline], [protected]
It transforms the __hash value hash into a ranged-hash value (using a bit-mask). She's [inline] and [protected], bestie β respect the access level, fr fr. π₯
π AUTHOR π
Generated automatically by Doxygen for libstdc++ from the source code.
cute sign-off: this page's footer/source stamp is libst__gnu_pbds::dir...ng< Size_Type >(3cxx) β that's the 3cxx manual vibe. The date isn't shown in the page text I got, so I'm not inventing one, ngl. π«Άβ¨
π¦ 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