---
name: "__gnu_pbds::direct_mask_range_hashing"
section: "3cxx"
platform: "linux"
package: "libstdc++-12-doc"
version: "12.4.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/__gnu_pbds::direct_mask_range_hashing/3cxx"
---

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

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\< Size\_Type \>**.

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