A mod range-hashing class (uses the modulo function). More...
#include <hash_policy.hpp>
Public Types | |
typedef Size_Type | size_type |
Public Member Functions | |
void | swap (direct_mod_range_hashing< Size_Type > &other) |
Protected Member Functions | |
void | notify_resized (size_type size) |
size_type | operator() (size_type hash) const |
Transforms the __hash value hash into a ranged-hash value (using a modulo operation). More... | |
size_type | range_hash (size_type s) const |
void | swap (mod_based_range_hashing &other) |
Private Types | |
typedef detail::mod_based_range_hashing< size_type > | mod_based_base |
A mod range-hashing class (uses the modulo function).
|
private |
typedef Size_Type __gnu_pbds::direct_mod_range_hashing< Size_Type >::size_type |
|
protected |
|
inlineprotected |
Transforms the __hash value hash into a ranged-hash value (using a modulo operation).
|
inlineprotectedinherited |
|
inlineprotectedinherited |
References __gnu_pbds::detail::mod_based_range_hashing< Size_Type >::m_size, and std::__exception_ptr::swap().
void __gnu_pbds::direct_mod_range_hashing< Size_Type >::swap | ( | direct_mod_range_hashing< Size_Type > & | other | ) |