__GNU_PBDS::DETAIL::THIN_HEAP(3cxx)

πŸ’– NAME

Okay bestie, welcome to the 3cxx manual page for __gnu_pbds::detail::thin_heap< Value_Type, Cmp_Fn, _Alloc >. Template class energy, very niche, very iconic. 🫢


✨ SYNOPSIS ✨

This is the entry point, exactly as written:

#include <thin_heap_.hpp>

It inherits __gnu_pbds::detail::left_child_next_sibling_heap< Value_Type, Cmp_Fn, _Alloc::size_type, _Alloc >.

πŸ’… Public Types

No skips, bestie β€” every typedef is right here:

  • typedef _Alloc allocator_type
  • typedef Cmp_Fn cmp_fn
  • typedef base_type::const_iterator const_iterator
  • typedef __rebind_a::const_pointer const_pointer
  • typedef __rebind_a::const_reference const_reference
  • typedef _Alloc::difference_type difference_type
  • typedef base_type::iterator iterator
  • typedef base_type::point_const_iterator point_const_iterator
  • typedef base_type::point_iterator point_iterator
  • typedef __rebind_a::pointer pointer
  • typedef __rebind_a::reference reference
  • typedef _Alloc::size_type size_type
  • typedef Value_Type value_type

🌸 Public Member Functions

Every single signature, exactly as the page gives it:

  • iterator begin ()
  • const_iterator begin () const
  • void clear ()
  • bool empty () const
  • iterator end ()
  • const_iterator end () const
  • void erase (point_iterator)
  • template<typename Pred > size_type erase_if (Pred)
  • Cmp_Fn & get_cmp_fn ()
  • const Cmp_Fn & get_cmp_fn () const
  • void join (thin_heap< Value_Type, Cmp_Fn, _Alloc > &)
  • size_type max_size () const
  • void modify (point_iterator, const_reference)
  • void pop ()
  • point_iterator push (const_reference)
  • size_type size () const
  • template<typename Pred > void split (Pred, thin_heap< 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 crew, but still fully listed:

  • typedef base_type::node node
  • typedef alloc_traits::allocator_type node_allocator
  • typedef base_type::node_const_pointer node_const_pointer
  • typedef _Alloc::size_type node_metadata
  • typedef base_type::node_pointer node_pointer
  • typedef std::pair< node_pointer, node_pointer > node_pointer_pair

πŸ¦‹ Protected Member Functions

The protected member function roster, no cap:

  • thin_heap (const Cmp_Fn &)
  • thin_heap (const thin_heap< Value_Type, Cmp_Fn, _Alloc > &)
  • 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)
  • node_pointer get_new_node_for_insert (const_reference)
  • node_pointer prune (Pred)
  • void swap (thin_heap< Value_Type, Cmp_Fn, _Alloc > &)
  • 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 node_pointer parent (node_pointer)

πŸ“ Protected Attributes

  • node_pointer m_p_root
  • size_type m_size

πŸ¦‹ Detailed Description

The description block literally says:

template<typename Value_Type, typename Cmp_Fn, typename _Alloc>
    class __gnu_pbds::detail::thin_heap< Value_Type, Cmp_Fn, _Alloc >"Thin
    heap.

And then the reference line:

See Tarjan and Kaplan.


πŸ‘‘ Author

Generated automatically by Doxygen for libstdc++ from the source code.


Sign-off 🫢: source/version footer is libstd__gnu_pbds::de...mp_Fn, _Alloc >(3cxx), the manual is 3cxx, and there’s no date listed in the footer, so no made-up calendar moment. πŸ’–

πŸ“¦ where this page comes from