__gnu_pbds::sample_size_policy(3) Library Functions Manual __gnu_pbds::sample_size_policy(3)

__gnu_pbds::sample_size_policy - A sample size policy.

#include <sample_size_policy.hpp>


typedef std::size_t size_type
Size type.


sample_size_policy ()
Default constructor. sample_range_hashing (const sample_size_policy &)
Copy constructor. void swap (sample_size_policy &other)
Swaps content.


size_type get_nearest_larger_size (size_type size) const
Given a __size size, returns a __size that is larger. size_type get_nearest_smaller_size (size_type size) const
Given a __size size, returns a __size that is smaller.

A sample size policy.

Size type.

Default constructor.

size_type __gnu_pbds::sample_size_policy::get_nearest_larger_size (size_type size) const [inline], [protected]

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

size_type __gnu_pbds::sample_size_policy::get_nearest_smaller_size (size_type size) const [inline], [protected]

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

Copy constructor.

Swaps content.

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

libstdc++