__GNU_PBDS::DETAIL::RC_BINOMIAL_HEAP(3)

πŸ“¦
version 16.2.1+r23+gd564253eb6c8 Β· 7 versions
, in arch rolling, fedora 44

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 from base_type.
  • typedef base_type::cmp_fn cmp_fn β€” comparison function type, also from base_type.
  • typedef base_type::const_iterator const_iterator β€” const iterator, from base_type.
  • typedef base_type::const_pointer const_pointer β€” const pointer, from base_type.
  • typedef base_type::const_reference const_reference β€” const reference, from base_type.
  • typedef _Alloc::difference_type difference_type β€” difference type, from _Alloc.
  • typedef base_type::iterator iterator β€” iterator, from base_type.
  • typedef base_type::point_const_iterator point_const_iterator β€” point const iterator, from base_type.
  • typedef base_type::point_iterator point_iterator β€” point iterator, from base_type.
  • typedef base_type::pointer pointer β€” pointer, from base_type.
  • typedef base_type::reference reference β€” reference, from base_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 a const Cmp_Fn &.
  • rc_binomial_heap (const rc_binomial_heap< Value_Type, Cmp_Fn, _Alloc > &) β€” another constructor, takes a const reference to the same rc_binomial_heap type.
  • 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 by point_iterator.
  • template<typename Pred> size_type erase_if (Pred) β€” erase-if with a Pred, returns size_type.
  • Cmp_Fn & get_cmp_fn () β€” get the comparison function, returns Cmp_Fn &.
  • void join (binomial_heap_base< Value_Type, Cmp_Fn, _Alloc > &) β€” join with a binomial_heap_base< Value_Type, Cmp_Fn, _Alloc > &.
  • void join (rc_binomial_heap< Value_Type, Cmp_Fn, _Alloc > &) β€” join with an rc_binomial_heap< Value_Type, Cmp_Fn, _Alloc > &.
  • size_type max_size () const β€” max size, returns size_type.
  • void modify (point_iterator, const_reference) β€” modify with a point_iterator and a const_reference.
  • void pop () β€” pop it.
  • point_iterator push (const_reference) β€” push a const_reference, returns point_iterator.
  • size_type size () const β€” size, returns size_type.
  • template<typename Pred> void split (Pred, binomial_heap_base< Value_Type, Cmp_Fn, _Alloc > &) β€” split with a Pred and a binomial_heap_base< Value_Type, Cmp_Fn, _Alloc > &.
  • template<typename Pred> void split (Pred, rc_binomial_heap< Value_Type, Cmp_Fn, _Alloc > &) β€” split with a Pred and an rc_binomial_heap< Value_Type, Cmp_Fn, _Alloc > &.
  • void swap (left_child_next_sibling_heap< Value_Type, Cmp_Fn, _Alloc::size_type, _Alloc > &) β€” swap with a left_child_next_sibling_heap< Value_Type, Cmp_Fn, _Alloc::size_type, _Alloc > &.
  • void swap (rc_binomial_heap< Value_Type, Cmp_Fn, _Alloc > &) β€” swap with an rc_binomial_heap< Value_Type, Cmp_Fn, _Alloc > &.
  • const_reference top () const β€” top, returns const_reference.

Protected Types πŸ¦‹

  • typedef base_type::node node β€” node type, from base_type.
  • typedef alloc_traits::allocator_type node_allocator β€” node allocator, from alloc_traits.
  • typedef _Alloc::size_type node_metadata β€” node metadata, from _Alloc.
  • typedef std::pair< node_pointer, node_pointer > node_pointer_pair β€” a pair of node_pointers.

Protected Member Functions 🌸

  • void actual_erase_node (node_pointer) β€” actually erase a node, takes a node_pointer.
  • void bubble_to_top (node_pointer) β€” bubble to top, takes a node_pointer.
  • void clear_imp (node_pointer) β€” clear implementation, takes a node_pointer.
  • template<typename It> void copy_from_range (It, It) β€” copy from range, takes two Its.
  • void find_max () β€” find max.
  • node_pointer get_new_node_for_insert (const_reference) β€” get a new node for insert, takes a const_reference, returns node_pointer.
  • node_pointer prune (Pred) β€” prune with a Pred, returns node_pointer.
  • void swap (binomial_heap_base< Value_Type, Cmp_Fn, _Alloc > &) β€” swap with a binomial_heap_base< Value_Type, Cmp_Fn, _Alloc > &.
  • void swap_with_parent (node_pointer, node_pointer) β€” swap with parent, takes two node_pointers.
  • void to_linked_list () β€” convert to linked list.
  • void value_swap (left_child_next_sibling_heap &) β€” value swap with a left_child_next_sibling_heap &.

Static Protected Member Functions ⭐

  • static void make_child_of (node_pointer, node_pointer) β€” static, make child of, takes two node_pointers.
  • static node_pointer parent (node_pointer) β€” static, parent, takes a node_pointer, returns node_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