A sample range-hashing functor.
This class serves to show the interface a range-hashing functor needs to support.
Method | Description |
sample_range_hashing () |
Default constructor. Must be default constructible. |
sample_range_hashing (const sample_range_hashing &r_other) |
Copy constructor. Must be copy constructible. |
inline void swap (sample_range_hashing &r_other) |
Swaps content. Must be swappable (if there is such a word). |
Method | Description |
void notify_resized (size_type size) |
Notifies the policy object that the container's size has changed to size. size_type is the size type on which the functor operates. |
Method | Description |
* comment = "@@sample_range_hashing_size_type_comment"> **/ inline size_type operator() (size_type hash) const |
Transforms the hash value hash into a ranged-hash value. |