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

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

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.

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

Copy constructor.

## 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.

## Author

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