libstdc++
__gnu_pbds::sample_resize_policy Class Reference

List of all members.

Public Types

Public Member Functions

Protected Member Functions


Detailed Description

A sample resize policy.

Definition at line 47 of file sample_resize_policy.hpp.


Member Typedef Documentation

Size type.

Definition at line 51 of file sample_resize_policy.hpp.


Constructor & Destructor Documentation


Member Function Documentation

size_type __gnu_pbds::sample_resize_policy::get_new_size ( size_type  size,
size_type  num_used_e 
) const [protected]

Queries what the new size should be.

bool __gnu_pbds::sample_resize_policy::is_resize_needed ( ) const [inline, protected]

Queries whether a resize is needed.

Notifies the table was cleared.

Notifies a search encountered a collision.

Notifies a search ended.

Notifies a search started.

void __gnu_pbds::sample_resize_policy::notify_erased ( size_type  num_e) [inline, protected]

Notifies an element was erased.

Notifies a search encountered a collision.

Notifies a search ended.

Notifies a search started.

Notifies a search encountered a collision.

Notifies a search ended.

Notifies a search started.

void __gnu_pbds::sample_resize_policy::notify_inserted ( size_type  num_e) [inline, protected]

Notifies an element was inserted.

Notifies the table was resized to new_size.

Swaps content.


The documentation for this class was generated from the following file: