__GNU_PBDS::DETAIL::BINARY_HEAP(3)
π __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_typetypedef Cmp_Fn cmp_fntypedef cond_dealtor< value_type, _Alloc > cond_dealtor_ttypedef binary_heap_const_iterator_< value_type, entry, simple_value, _Alloc > const_iteratortypedef __rebind_v::const_pointer const_pointertypedef __rebind_v::const_reference const_referencetypedef _Alloc::difference_type difference_typetypedef __conditional_type< simple_value, value_type, pointer >::__type entrytypedef rebind_traits< _Alloc, entry >::allocator_type entry_allocatortypedef entry_cmp< Value_Type, Cmp_Fn, _Alloc, is_simple< Value_Type >::value >::type entry_cmptypedef rebind_traits< _Alloc, entry >::pointer entry_pointertypedef const_iterator iteratortypedef binary_heap_point_const_iterator_< value_type, entry, simple_value, _Alloc > point_const_iteratortypedef point_const_iterator point_iteratortypedef __rebind_v::pointer pointertypedef __rebind_v::reference referencetypedef __gnu_pbds::detail::resize_policy< typename _Alloc::size_type > resize_policytypedef _Alloc::size_type size_typetypedef Value_Type value_type
π Public Member Functions
binary_heap (const binary_heap &)binary_heap (const cmp_fn &)iterator begin ()const_iterator begin () constvoid clear ()bool empty () constiterator end ()const_iterator end () constvoid 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 () constsize_type get_new_size_for_arbitrary (size_type) constsize_type get_new_size_for_grow () constsize_type get_new_size_for_shrink () constbool grow_needed (size_type) constvoid join (binary_heap &)size_type max_size () constvoid 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) constbool resize_needed_for_shrink (size_type) constbool shrink_needed (size_type) constsize_type size () consttemplate<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