---
name: "__gnu_pbds::sample_probe_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_probe_fn/3cxx"
---

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

A sample probe policy.

## NAME

\_\_gnu\_pbds::sample\_probe\_fn - A sample probe policy.

## SYNOPSIS

`#include <sample_probe_fn.hpp>`

### Public Types

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

### Public Member Functions

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

### Protected Member Functions

size\_type **operator()** (key\_const\_reference r\_key, size\_type i) const\
 Returns the i-th offset from the hash value of some key r\_key.

## Detailed Description

A sample probe policy.

## Constructor & Destructor Documentation

### \_\_gnu\_pbds::sample\_probe\_fn::sample\_probe\_fn ()

Default constructor.

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

Copy constructor.

## Member Function Documentation

### size\_type \_\_gnu\_pbds::sample\_probe\_fn::operator() (key\_const\_reference r\_key, size\_type i) const` [inline]`, ` [protected]`

Returns the i-th offset from the hash value of some key r\_key.

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

Swaps content.

## Author

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