41 #ifndef PB_DS_SAMPLE_RESIZE_TRIGGER_HPP
42 #define PB_DS_SAMPLE_RESIZE_TRIGGER_HPP
void notify_inserted(size_type num_entries)
Notifies an element was inserted. the total number of entries in the table is num_entries.
void notify_insert_search_start()
Notifies a search started.
void notify_find_search_end()
Notifies a search ended.
bool is_resize_needed() const
Queries whether a resize is needed.
void notify_find_search_start()
Notifies a search started.
constexpr size_t size() const noexcept
Returns the total number of bits.
void notify_resized(size_type new_size)
Notifies the table was resized as a result of this object's signifying that a resize is needed...
void notify_insert_search_collision()
Notifies a search encountered a collision.
sample_resize_trigger()
Default constructor.
void notify_erase_search_start()
Notifies a search started.
void notify_erase_search_end()
Notifies a search ended.
void notify_erased(size_type num_entries)
Notifies an element was erased.
std::size_t size_type
Size type.
void notify_externally_resized(size_type new_size)
Notifies the table was resized externally.
A sample resize trigger policy.
void notify_cleared()
Notifies the table was cleared.
void notify_insert_search_end()
Notifies a search ended.
void swap(sample_resize_trigger &)
Swaps content.
void notify_erase_search_collision()
Notifies a search encountered a collision.
bool is_grow_needed(size_type size, size_type num_entries) const
Queries whether a grow is needed.
sample_range_hashing(const sample_resize_trigger &)
Copy constructor.
void notify_find_search_collision()
Notifies a search encountered a collision.