libstdc++: __gnu_pbds::sample_size_policy Class Reference

libstdc++

__gnu_pbds::sample_size_policy Class Reference

`#include <sample_size_policy.hpp>`

## Public Types
typedef std::size_t | size_type

## Public Member Functions
| sample_size_policy ()
| sample_range_hashing (const sample_size_policy &)
void | swap (sample_size_policy &other)

## Protected Member Functions
size_type | get_nearest_larger_size (size_type size) const
size_type | get_nearest_smaller_size (size_type size) const

## Detailed Description

A sample size policy.

Definition at line 47 of file sample_size_policy.hpp.

## Member Typedef Documentation

## ◆ size_type

typedef std::size_t __gnu_pbds::sample_size_policy::size_type

Size type.

Definition at line 51 of file sample_size_policy.hpp.

## Constructor & Destructor Documentation

## ◆ sample_size_policy()

__gnu_pbds::sample_size_policy::sample_size_policy | ( |  | ) |

Default constructor.

Referenced by sample_range_hashing(), and swap().

## Member Function Documentation

## ◆ get_nearest_larger_size()

size_type __gnu_pbds::sample_size_policy::get_nearest_larger_size | ( | size_type | size | ) | const
| inlineprotected

Given a __size size, returns a __size that is larger.

## ◆ get_nearest_smaller_size()

size_type __gnu_pbds::sample_size_policy::get_nearest_smaller_size | ( | size_type | size | ) | const
| inlineprotected

Given a __size size, returns a __size that is smaller.

## ◆ sample_range_hashing()

__gnu_pbds::sample_size_policy::sample_range_hashing | ( | const sample_size_policy & |  | ) |

Copy constructor.

References sample_size_policy().

## ◆ swap()

void __gnu_pbds::sample_size_policy::swap | ( | sample_size_policy & | other | ) |
| inline

Swaps content.

References sample_size_policy().

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

- sample_size_policy.hpp