|
STLdoc
STLdocumentation
|
A sample size policy. More...
#include <ext/pb_ds/detail/resize_policy/sample_size_policy.hpp>
Public Types | |
| typedef std::size_t | size_type |
| Size type. More... | |
Public Member Functions | |
| sample_size_policy () | |
| Default constructor. More... | |
| sample_range_hashing (const sample_size_policy &) | |
| Copy constructor. More... | |
| void | swap (sample_size_policy &other) |
| Swaps content. More... | |
Protected Member Functions | |
| size_type | get_nearest_larger_size (size_type size) const |
| Given a __size size, returns a __size that is larger. More... | |
| size_type | get_nearest_smaller_size (size_type size) const |
| Given a __size size, returns a __size that is smaller. More... | |
A sample size policy.
Size type.
| __gnu_pbds::sample_size_policy::sample_size_policy | ( | ) |
Default constructor.
|
inlineprotected |
Given a __size size, returns a __size that is larger.
|
inlineprotected |
Given a __size size, returns a __size that is smaller.
| __gnu_pbds::sample_size_policy::sample_range_hashing | ( | const sample_size_policy & | ) |
Copy constructor.
|
inline |
Swaps content.
1.8.6