__GNU_PBDS::DETAIL::BINARY_HEAP(3)

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

πŸ’– __gnu_pbds::detail::binary_heap< Value_Type, Cmp_Fn, _Alloc > πŸ’–

okay bestie, buckle up β€” this one's from the Library Functions Manual, and it's a whole heap situation (literally). it's __gnu_pbds::detail::binary_heap< Value_Type, Cmp_Fn, _Alloc >, no cap 🫢


✨ NAME ✨

__gnu_pbds::detail::binary_heap< Value_Type, Cmp_Fn, _Alloc > β€” that's the whole name, that's the vibe, periodt.


🌸 SYNOPSIS 🌸

#include <binary_heap_.hpp>

Inherits . (yeah, that's literally all it says β€” the inheritance list is empty, the doc just ✨dips✨ πŸ’€)

πŸ‘‘ Public Types

  • typedef _Alloc allocator_type
  • typedef Cmp_Fn cmp_fn
  • typedef cond_dealtor< value_type, _Alloc > cond_dealtor_t
  • typedef binary_heap_const_iterator_< value_type, entry, simple_value, _Alloc > const_iterator
  • typedef __rebind_v::const_pointer const_pointer
  • typedef __rebind_v::const_reference const_reference
  • typedef _Alloc::difference_type difference_type
  • typedef __conditional_type< simple_value, value_type, pointer >::__type entry
  • typedef rebind_traits< _Alloc, entry >::allocator_type entry_allocator
  • typedef entry_cmp< Value_Type, Cmp_Fn, _Alloc, is_simple< Value_Type >::value >::type entry_cmp
  • typedef rebind_traits< _Alloc, entry >::pointer entry_pointer
  • typedef const_iterator iterator
  • typedef binary_heap_point_const_iterator_< value_type, entry, simple_value, _Alloc > point_const_iterator
  • typedef point_const_iterator point_iterator
  • typedef __rebind_v::pointer pointer
  • typedef __rebind_v::reference reference
  • typedef __gnu_pbds::detail::resize_policy< typename _Alloc::size_type > resize_policy
  • typedef _Alloc::size_type size_type
  • typedef Value_Type value_type

πŸ’… Public Member Functions

  • binary_heap (const binary_heap &)
  • binary_heap (const cmp_fn &)
  • iterator begin ()
  • const_iterator begin () const
  • void clear ()
  • bool empty () const
  • iterator end ()
  • const_iterator end () const
  • void erase (point_iterator)
  • void erase_at (entry_pointer, size_type, false_type)
  • void erase_at (entry_pointer, size_type, true_type)
  • template<typename Pred> size_type erase_if (Pred)
  • Cmp_Fn & get_cmp_fn ()
  • const Cmp_Fn & get_cmp_fn () const
  • size_type get_new_size_for_arbitrary (size_type) const
  • size_type get_new_size_for_grow () const
  • size_type get_new_size_for_shrink () const
  • bool grow_needed (size_type) const
  • void join (binary_heap &)
  • size_type max_size () const
  • void modify (point_iterator, const_reference)
  • void notify_arbitrary (size_type)
  • void notify_grow_resize ()
  • void notify_shrink_resize ()
  • void pop ()
  • point_iterator push (const_reference)
  • bool resize_needed_for_grow (size_type) const
  • bool resize_needed_for_shrink (size_type) const
  • bool shrink_needed (size_type) const
  • size_type size () const
  • template<typename Pred> void split (Pred, binary_heap &)
  • void swap (binary_heap &)
  • void swap (resize_policy< _Alloc::size_type > &)
  • const_reference top () const

⭐ Static Public Attributes

  • static const _Alloc::size_type min_size

πŸ¦‹ Protected Member Functions

  • template<typename It> void copy_from_range (It, It)

πŸŽ€ DETAILED DESCRIPTION πŸŽ€

template<typename Value_Type, typename Cmp_Fn, typename _Alloc>
    class __gnu_pbds::detail::binary_heap< Value_Type, Cmp_Fn, _Alloc
    >"Binary heaps composed of resize and compare policies.

Binary heaps composed of resize and compare policies. πŸ’œ

Based on CLRS. (yes, that CLRS β€” the big algorithms textbook, she's academically iconic πŸ“šπŸ‘‘)


🌈 AUTHOR 🌈

Generated automatically by Doxygen for libstdc++ from the source code. (so like, nobody hand-wrote this, a robot did, and honestly? she ate πŸ€–βœ¨)


okay so that's the whole page bestie β€” no hidden extras, no extra tips, just exactly what's on it 🫢 this one came to you courtesy of libstdc++ and the Library Functions Manual, and ngl the page didn't hand me a date to pass along, so consider this your sign-off without one πŸ’… stay heaped, stay resized, mwah πŸ˜­πŸ’–

πŸ“¦ 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