A sample range-hashing functor. More...
#include <sample_range_hashing.hpp>
Public Types | |
typedef std::size_t | size_type |
Size type. More... | |
Public Member Functions | |
sample_range_hashing () | |
Default constructor. More... | |
sample_range_hashing (const sample_range_hashing &other) | |
Copy constructor. More... | |
void | swap (sample_range_hashing &other) |
Swaps content. More... | |
Protected Member Functions | |
void | notify_resized (size_type) |
Notifies the policy object that the container's size has changed to argument's size. More... | |
size_type | operator() (size_type) const |
Transforms the __hash value hash into a ranged-hash value. More... | |
A sample range-hashing functor.
typedef std::size_t __gnu_pbds::sample_range_hashing::size_type |
Size type.
__gnu_pbds::sample_range_hashing::sample_range_hashing | ( | ) |
Default constructor.
__gnu_pbds::sample_range_hashing::sample_range_hashing | ( | const sample_range_hashing & | other | ) |
Copy constructor.
|
protected |
Notifies the policy object that the container's size has changed to argument's size.
Transforms the __hash value hash into a ranged-hash value.
|
inline |
Swaps content.