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

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

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.

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

Copy constructor.

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

## Author

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