A sample ranged-hash functor.
This class serves to show the interface a ranged-hash functor needs to support.
Defined in: sample_ranged_hash_fn.hpp
Type | Definition | Description |
size_type |
size_t, e.g. |
Size type. |
Method | Description |
sample_ranged_hash_fn () |
Default constructor. Must be default constructable. |
sample_ranged_hash_fn (const sample_ranged_hash_fn &other) |
Copy constructor. Must be copy constructable. |
inline void swap (sample_ranged_hash_fn &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. |
Method | Description |
inline size_type operator() (const_key_reference r_key) const |
Transforms r_key into a position within the table. |