---
name: "__gnu_pbds::sample_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::sample_range_hashing"
---

# \_\_gnu\_pbds::sample\_range\_hashing(3)

A sample range-hashing functor.

## NAME

\_\_gnu\_pbds::sample\_range\_hashing - A sample range-hashing functor.

## SYNOPSIS

\#include \<sample\_range\_hashing.hpp\>

### Public Types

typedef std::size\_t **size\_type**\
 Size type.

### Public Member Functions

**sample\_range\_hashing** ()\
 Default constructor.  **sample\_range\_hashing** (const sample\_range\_hashing &other)\
 Copy constructor.  void **swap** (**sample\_range\_hashing** &other)\
 Swaps content.

### Protected Member Functions

void **notify\_resized** (**size\_type**)\
 Notifies the policy object that the container's size has changed to argument's size.  **size\_type** **operator()** (**size\_type**) const\
 Transforms the \_\_hash value hash into a ranged-hash value.

## Detailed Description

A sample range-hashing functor.

## Member Typedef Documentation

### typedef std::size\_t \_\_gnu\_pbds::sample\_range\_hashing::size\_type

Size type.

## Constructor & Destructor Documentation

### \_\_gnu\_pbds::sample\_range\_hashing::sample\_range\_hashing ()

Default constructor.

Referenced by **sample\_range\_hashing()**, and **swap()**.

### \_\_gnu\_pbds::sample\_range\_hashing::sample\_range\_hashing (const sample\_range\_hashing & other)

Copy constructor.

References **sample\_range\_hashing()**.

## Member Function Documentation

### void \_\_gnu\_pbds::sample\_range\_hashing::notify\_resized (size\_type ) \[protected\]

Notifies the policy object that the container's size has changed to argument's size.

### size\_type \_\_gnu\_pbds::sample\_range\_hashing::operator() (size\_type ) const \[inline\], \[protected\]

Transforms the \_\_hash value hash into a ranged-hash value.

### void \_\_gnu\_pbds::sample\_range\_hashing::swap (sample\_range\_hashing & other) \[inline\]

Swaps content.

References **sample\_range\_hashing()**.

## Author

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