__GNU_PBDS::DETAIL::RC_BINOMIAL_HEAP(3)
NAME π
okay so bestie, this page is all about __gnu_pbds::detail::rc_binomial_heap< Value_Type, Cmp_Fn, _Alloc > β the redundant-counter binomial heap. We're in the Library Functions Manual, section (3), and the header title is __gnu_pbds..., _Alloc >(3). It's giving data-structure main character energy, fr fr. π«Ά
SYNOPSIS β¨
#include <rc_binomial_heap_.hpp>
Inherits __gnu_pbds::detail::binomial_heap_base< Value_Type, Cmp_Fn, _Alloc >.
Public Types π
typedef base_type::allocator_type allocator_typeβ the allocator type, straight frombase_type.typedef base_type::cmp_fn cmp_fnβ comparison function type, also frombase_type.typedef base_type::const_iterator const_iteratorβ const iterator, frombase_type.typedef base_type::const_pointer const_pointerβ const pointer, frombase_type.typedef base_type::const_reference const_referenceβ const reference, frombase_type.typedef _Alloc::difference_type difference_typeβ difference type, from_Alloc.typedef base_type::iterator iteratorβ iterator, frombase_type.typedef base_type::point_const_iterator point_const_iteratorβ point const iterator, frombase_type.typedef base_type::point_iterator point_iteratorβ point iterator, frombase_type.typedef base_type::pointer pointerβ pointer, frombase_type.typedef base_type::reference referenceβ reference, frombase_type.typedef _Alloc::size_type size_typeβ size type, from_Alloc.typedef Value_Type value_typeβ the value type, periodt.
Public Member Functions π
rc_binomial_heap (const Cmp_Fn &)β constructor, takes aconst Cmp_Fn &.rc_binomial_heap (const rc_binomial_heap< Value_Type, Cmp_Fn, _Alloc > &)β another constructor, takes a const reference to the samerc_binomial_heaptype.iterator begin ()β begin iterator.void clear ()β clear it.bool empty () constβ tells you if it's empty.iterator end ()β end iterator.void erase (point_iterator)β erase bypoint_iterator.template<typename Pred> size_type erase_if (Pred)β erase-if with aPred, returnssize_type.Cmp_Fn & get_cmp_fn ()β get the comparison function, returnsCmp_Fn &.void join (binomial_heap_base< Value_Type, Cmp_Fn, _Alloc > &)β join with abinomial_heap_base< Value_Type, Cmp_Fn, _Alloc > &.void join (rc_binomial_heap< Value_Type, Cmp_Fn, _Alloc > &)β join with anrc_binomial_heap< Value_Type, Cmp_Fn, _Alloc > &.size_type max_size () constβ max size, returnssize_type.void modify (point_iterator, const_reference)β modify with apoint_iteratorand aconst_reference.void pop ()β pop it.point_iterator push (const_reference)β push aconst_reference, returnspoint_iterator.size_type size () constβ size, returnssize_type.template<typename Pred> void split (Pred, binomial_heap_base< Value_Type, Cmp_Fn, _Alloc > &)β split with aPredand abinomial_heap_base< Value_Type, Cmp_Fn, _Alloc > &.template<typename Pred> void split (Pred, rc_binomial_heap< Value_Type, Cmp_Fn, _Alloc > &)β split with aPredand anrc_binomial_heap< Value_Type, Cmp_Fn, _Alloc > &.void swap (left_child_next_sibling_heap< Value_Type, Cmp_Fn, _Alloc::size_type, _Alloc > &)β swap with aleft_child_next_sibling_heap< Value_Type, Cmp_Fn, _Alloc::size_type, _Alloc > &.void swap (rc_binomial_heap< Value_Type, Cmp_Fn, _Alloc > &)β swap with anrc_binomial_heap< Value_Type, Cmp_Fn, _Alloc > &.const_reference top () constβ top, returnsconst_reference.
Protected Types π¦
typedef base_type::node nodeβ node type, frombase_type.typedef alloc_traits::allocator_type node_allocatorβ node allocator, fromalloc_traits.typedef _Alloc::size_type node_metadataβ node metadata, from_Alloc.typedef std::pair< node_pointer, node_pointer > node_pointer_pairβ a pair ofnode_pointers.
Protected Member Functions πΈ
void actual_erase_node (node_pointer)β actually erase a node, takes anode_pointer.void bubble_to_top (node_pointer)β bubble to top, takes anode_pointer.void clear_imp (node_pointer)β clear implementation, takes anode_pointer.template<typename It> void copy_from_range (It, It)β copy from range, takes twoIts.void find_max ()β find max.node_pointer get_new_node_for_insert (const_reference)β get a new node for insert, takes aconst_reference, returnsnode_pointer.node_pointer prune (Pred)β prune with aPred, returnsnode_pointer.void swap (binomial_heap_base< Value_Type, Cmp_Fn, _Alloc > &)β swap with abinomial_heap_base< Value_Type, Cmp_Fn, _Alloc > &.void swap_with_parent (node_pointer, node_pointer)β swap with parent, takes twonode_pointers.void to_linked_list ()β convert to linked list.void value_swap (left_child_next_sibling_heap &)β value swap with aleft_child_next_sibling_heap &.
Static Protected Member Functions β
static void make_child_of (node_pointer, node_pointer)β static, make child of, takes twonode_pointers.static node_pointer parent (node_pointer)β static, parent, takes anode_pointer, returnsnode_pointer.
Protected Attributes π
node_pointer m_p_maxβ protected attribute.node_pointer m_p_rootβ protected attribute.size_type m_sizeβ protected attribute.
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.
So the class is literally described as the redundant-counter binomial heap. Yes, that stray " is in the original, and we're not fixing code here β code is sacred, bestie. π
Author π«Ά
Generated automatically by Doxygen for libstdc++ from the source code.
bye bestie π this was libstdc++'s page, __gnu_pbds..., _Alloc >(3), from the Library Functions Manual. No date on the page, just the source/version and title. xoxo πβ¨
π¦ where this page comes from
- arch rolling: gcc 16.2.1+r23+gd564253eb6c8-1 Β· GPL-3.0-or-later WITH GCC-exception-3.1 AND GFDL-1.3-or-later
- fedora 44: libstdc++-docs 16.0.1-0.10.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- fedora 44: libstdc++-docs 16.2.1-2.fc44
- fedora 44: libstdc++-docs 16.2.1-3.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms