---
name: "__gnu_pbds::direct_mask_range_hashing"
section: "3"
platform: "linux"
package: "gcc"
version: "16.2.1+r23+gd564253eb6c8-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/__gnu_pbds::direct_mask_range_hashing"
---

# \_\_gnu\_pbds::direct\_mask\_range\_hashing(3)

A mask range-hashing class (uses a bitmask).

## 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\< std::size\_t \>**.

### Public Types

typedef Size\_Type **size\_type**\

### Public Member Functions

void **swap** (**direct\_mask\_range\_hashing**\< Size\_Type \> &other)\

### Protected Member Functions

void **notify\_resized** (size\_type size)\
 size\_type **operator()** (size\_type hash) const\
 Transforms the \_\_hash value hash into a ranged-hash value (using a bit-mask).  size\_type **range\_hash** (size\_type hash) const\
 void **swap** (mask\_based\_range\_hashing &other)\

## Detailed Description

### template\<typename Size\_Type = std::size\_t\>

class \_\_gnu\_pbds::direct\_mask\_range\_hashing\< Size\_Type \>"A mask range-hashing class (uses a bitmask).

## Member Function Documentation

### template\<typename Size\_Type\> direct\_mask\_range\_hashing\< Size\_Type \>::size\_type \_\_gnu\_pbds::direct\_mask\_range\_hashing\< Size\_Type \>::operator() (size\_type hash) const \[inline\], \[protected\]

Transforms the \_\_hash value hash into a ranged-hash value (using a bit-mask).

## Author

Generated automatically by Doxygen for libstdc++ from the source code.
