---
name: "__gnu_pbds::linear_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::linear_probe_fn"
---

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

A probe sequence policy using fixed increments.

## NAME

\_\_gnu\_pbds::linear\_probe\_fn\< Size\_Type \> - A probe sequence policy using fixed increments.

## SYNOPSIS

\#include \<hash\_policy.hpp\>

### Public Types

typedef Size\_Type **size\_type**\

### Public Member Functions

void **swap** (**linear\_probe\_fn**\< Size\_Type \> &other)\

### Protected Member Functions

size\_type **operator()** (size\_type i) const\
 Returns the i-th offset from the hash value.

## Detailed Description

### template\<typename Size\_Type = std::size\_t\>

class \_\_gnu\_pbds::linear\_probe\_fn\< Size\_Type \>"A probe sequence policy using fixed increments.

## Member Function Documentation

### template\<typename Size\_Type\> linear\_probe\_fn\< Size\_Type \>::size\_type \_\_gnu\_pbds::linear\_probe\_fn\< Size\_Type \>::operator() (size\_type i) const \[inline\], \[protected\]

Returns the i-th offset from the hash value.

## Author

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