__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 literally Size_Type, no cap.

🫢 Public Member Functions 🫢

  • void swap (direct_mask_range_hashing< Size_Type > &other) β€” swaps this one with other. 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 __hash value hash into 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 another mask_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. 🫢✨