|
STLdoc
STLdocumentation
|
Resize policy for binary heap. More...
#include <ext/pb_ds/detail/binary_heap_/resize_policy.hpp>
Public Types | |
| typedef _Tp | size_type |
Public Member Functions | |
| resize_policy () | |
| resize_policy (const resize_policy &other) | |
| void | swap (resize_policy< _Tp > &) |
| bool | resize_needed_for_grow (size_type) const |
| bool | resize_needed_for_shrink (size_type) const |
| bool | grow_needed (size_type) const |
| bool | shrink_needed (size_type) const |
| size_type | get_new_size_for_grow () const |
| size_type | get_new_size_for_shrink () const |
| size_type | get_new_size_for_arbitrary (size_type) const |
| void | notify_grow_resize () |
| void | notify_shrink_resize () |
| void | notify_arbitrary (size_type) |
Static Public Attributes | |
| static const _Tp | min_size = 16 |
Private Types | |
| enum | { ratio = 8, factor = 2 } |
Private Attributes | |
| _Tp | m_shrink_size |
| Next shrink size. More... | |
| _Tp | m_grow_size |
| Next grow size. More... | |
Resize policy for binary heap.
| typedef _Tp __gnu_pbds::detail::resize_policy< _Tp >::size_type |
|
private |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Next grow size.
|
private |
Next shrink size.
|
static |
1.8.6