libstdc++: __gnu_pbds::sample_ranged_hash_fn Class Reference

libstdc++

__gnu_pbds::sample_ranged_hash_fn Class Reference

`#include <sample_ranged_hash_fn.hpp>`

## Public Types
typedef std::size_t | size_type

## Public Member Functions
| sample_ranged_hash_fn ()
| sample_ranged_hash_fn (const sample_ranged_hash_fn &)
void | swap (sample_ranged_hash_fn &)

## Protected Member Functions
void | notify_resized (size_type)
size_type | operator() (key_const_reference) const

## Detailed Description

A sample ranged-hash functor.

Definition at line 47 of file sample_ranged_hash_fn.hpp.

## Member Typedef Documentation

## ◆ size_type

typedef std::size_t __gnu_pbds::sample_ranged_hash_fn::size_type

Definition at line 50 of file sample_ranged_hash_fn.hpp.

## Constructor & Destructor Documentation

## ◆ sample_ranged_hash_fn() [1/2]

__gnu_pbds::sample_ranged_hash_fn::sample_ranged_hash_fn | ( |  | ) |

Default constructor.

Referenced by sample_ranged_hash_fn(), and swap().

## ◆ sample_ranged_hash_fn() [2/2]

__gnu_pbds::sample_ranged_hash_fn::sample_ranged_hash_fn | ( | const sample_ranged_hash_fn & |  | ) |

Copy constructor.

References sample_ranged_hash_fn().

## Member Function Documentation

## ◆ notify_resized()

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.

## ◆ operator()()

size_type __gnu_pbds::sample_ranged_hash_fn::operator() | ( | key_const_reference |  | ) | const
| inlineprotected

Transforms key_const_reference into a position within the table.

## ◆ swap()

void __gnu_pbds::sample_ranged_hash_fn::swap | ( | sample_ranged_hash_fn & |  | ) |
| inline

Swaps content.

References sample_ranged_hash_fn().

The documentation for this class was generated from the following file:

- sample_ranged_hash_fn.hpp