---
name: "__gnu_pbds::quadratic_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::quadratic_probe_fn/3cxx"
---

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

A probe sequence policy using square increments.

## NAME

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

## SYNOPSIS

`#include <hash_policy.hpp>`

### Public Types

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

### Public Member Functions

void **swap** (**quadratic\_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::quadratic\_probe\_fn\< Size\_Type \>"A probe sequence policy using square increments.

## Member Function Documentation

### template\<typename Size\_Type = std::size\_t\> size\_type \_\_gnu\_pbds::quadratic\_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.
