__GNU_PBDS::DETAIL::RC_BINOMIAL_HEAP(3cxx)
okay bestie, welcome to the (3cxx) manual page for __gnu_pbds::detail::rc_binomial_heap< Value_Type, Cmp_Fn, _Alloc > β yes, the whole class, and itβs giving deep GNU PBDS detail energy π
β¨
π NAME π
__gnu_pbds::detail::rc_binomial_heap< Value_Type, Cmp_Fn, _Alloc >
β¨ SYNOPSIS β¨
#include <rc_binomial_heap_.hpp>
Inherits __gnu_pbds::detail::binomial_heap_base< Value_Type, Cmp_Fn, _Alloc >.
π§ Public Types π§
these are the public typedefs, bestie β every single one stays exactly like this, no cap:
typedef base_type::allocator_type allocator_typetypedef base_type::cmp_fn cmp_fntypedef base_type::const_iterator const_iteratortypedef base_type::const_pointer const_pointertypedef base_type::const_reference const_referencetypedef _Alloc::difference_type difference_typetypedef base_type::iterator iteratortypedef base_type::point_const_iterator point_const_iteratortypedef base_type::point_iterator point_iteratortypedef base_type::pointer pointertypedef base_type::reference referencetypedef _Alloc::size_type size_typetypedef Value_Type value_type
π Public Member Functions π
okay so hereβs the full public member-function lineup β signatures are copied exactly, periodt:
rc_binomial_heap (const binomial_heap_base< Value_Type, Cmp_Fn, _Alloc > &)rc_binomial_heap (const Cmp_Fn &)iterator begin ()const_iterator begin () constvoid clear ()bool empty () constiterator end ()const_iterator end () constvoid erase (point_iterator)template<typename Pred > size_type erase_if (Pred)Cmp_Fn & get_cmp_fn ()const Cmp_Fn & get_cmp_fn () constvoid join (binomial_heap_base< Value_Type, Cmp_Fn, _Alloc > &)size_type max_size () constvoid modify (point_iterator, const_reference)void pop ()point_iterator push (const_reference)size_type size () consttemplate<typename Pred > void split (Pred, binomial_heap_base< Value_Type, Cmp_Fn, _Alloc > &)void swap (binomial_heap_base< Value_Type, Cmp_Fn, _Alloc > &)void swap (left_child_next_sibling_heap< Value_Type, Cmp_Fn, _Alloc::size_type, _Alloc > &)const_reference top () const
π¦ Protected Types π¦
protected types, but make it iconic β¨:
typedef base_type::node nodetypedef alloc_traits::allocator_type node_allocatortypedef _Alloc::size_type node_metadatatypedef std::pair< node_pointer, node_pointer > node_pointer_pair
πΈ Protected Member Functions πΈ
these are protected, so act accordingly, bestie π :
void actual_erase_node (node_pointer)void bubble_to_top (node_pointer)void clear_imp (node_pointer)template<typename It > void copy_from_range (It, It)void find_max ()node_pointer get_new_node_for_insert (const_reference)node_pointer prune (Pred)void swap_with_parent (node_pointer, node_pointer)void to_linked_list ()void value_swap (left_child_next_sibling_heap &)
π Static Protected Member Functions π
static protected member functions, lowkey important π«Ά:
static void make_child_of (node_pointer, node_pointer)static node_pointer parent (node_pointer)
π Protected Attributes π
the protected data members, and yes, every name is exact:
node_pointer m_p_maxnode_pointer m_p_rootsize_type m_size
π Detailed Description π
template<typename Value_Type, typename Cmp_Fn, typename _Alloc>
class __gnu_pbds::detail::rc_binomial_heap< Value_Type, Cmp_Fn, _Alloc >
Redundant-counter binomial heap.
thatβs the description, bestie β short, sweet, and extremely specific πβ¨
π Author π
not a human author, bestie β this one is literally:
Generated automatically by Doxygen for libstdc++ from the source code.
mwah π β this page is from thelibstdc++source-code docs and lives in the(3cxx)manual. The footer didnβt give me a date, so Iβm not inventing one, bestie; Doxygen just did its automatic thing. π«Ά
π¦ where this page comes from
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms