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

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

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.

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

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

Copy constructor.

References **sample\_probe\_fn()**.

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

References **sample\_probe\_fn()**.

## Author

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