41 #ifndef PB_DS_SAMPLE_RESIZE_POLICY_HPP
42 #define PB_DS_SAMPLE_RESIZE_POLICY_HPP
122 get_new_size(size_type size, size_type num_used_e)
const;
void notify_erased(size_type num_e)
Notifies an element was erased.
size_type get_new_size(size_type size, size_type num_used_e) const
Queries what the new size should be.
void notify_resized(size_type new_size)
Notifies the table was resized to new_size.
sample_resize_policy()
Default constructor.
void notify_erase_search_collision()
Notifies a search encountered a collision.
void notify_find_search_start()
Notifies a search started.
void swap(sample_resize_policy &other)
Swaps content.
void notify_erase_search_end()
Notifies a search ended.
void notify_insert_search_start()
Notifies a search started.
GNU extensions for policy-based data structures for public use.
void notify_find_search_end()
Notifies a search ended.
sample_range_hashing(const sample_resize_policy &other)
Copy constructor.
bool is_resize_needed() const
Queries whether a resize is needed.
void notify_erase_search_start()
Notifies a search started.
void notify_cleared()
Notifies the table was cleared.
void notify_insert_search_end()
Notifies a search ended.
std::size_t size_type
Size type.
void notify_insert_search_collision()
Notifies a search encountered a collision.
void notify_inserted(size_type num_e)
Notifies an element was inserted.
void notify_find_search_collision()
Notifies a search encountered a collision.