---
name: "__gnu_pbds::sample_ranged_hash_fn"
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_ranged_hash_fn"
---

# \_\_gnu\_pbds::sample\_ranged\_hash\_fn(3)

A sample ranged-hash functor.

## NAME

\_\_gnu\_pbds::sample\_ranged\_hash\_fn - A sample ranged-hash functor.

## SYNOPSIS

\#include \<sample\_ranged\_hash\_fn.hpp\>

### Public Types

typedef std::size\_t **size\_type**\

### Public Member Functions

**sample\_ranged\_hash\_fn** ()\
 Default constructor.  **sample\_ranged\_hash\_fn** (const sample\_ranged\_hash\_fn &)\
 Copy constructor.  void **swap** (**sample\_ranged\_hash\_fn** &)\
 Swaps content.

### Protected Member Functions

void **notify\_resized** (size\_type)\
 Notifies the policy object that the container's \_\_size has changed to size.  size\_type **operator()** (key\_const\_reference) const\
 Transforms key\_const\_reference into a position within the table.

## Detailed Description

A sample ranged-hash functor.

## Constructor & Destructor Documentation

### \_\_gnu\_pbds::sample\_ranged\_hash\_fn::sample\_ranged\_hash\_fn ()

Default constructor.

Referenced by **sample\_ranged\_hash\_fn()**, and **swap()**.

### \_\_gnu\_pbds::sample\_ranged\_hash\_fn::sample\_ranged\_hash\_fn (const sample\_ranged\_hash\_fn & )

Copy constructor.

References **sample\_ranged\_hash\_fn()**.

## Member Function Documentation

### void \_\_gnu\_pbds::sample\_ranged\_hash\_fn::notify\_resized (size\_type ) \[protected\]

Notifies the policy object that the container's \_\_size has changed to size.

### size\_type \_\_gnu\_pbds::sample\_ranged\_hash\_fn::operator() (key\_const\_reference ) const \[inline\], \[protected\]

Transforms key\_const\_reference into a position within the table.

### void \_\_gnu\_pbds::sample\_ranged\_hash\_fn::swap (sample\_ranged\_hash\_fn & ) \[inline\]

Swaps content.

References **sample\_ranged\_hash\_fn()**.

## Author

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