__GNU_PBDS::DETAIL::RESIZE_POLICY(3)
π __gnu_pbds::detail::resize_policy< _Tp > π
okay bestie, welcome to the libstdc++ corner of the Library Functions Manual β this is the page for __gnu_pbds::detail::resize_policy< _Tp >, and yes we're gonna read it together, it's giving very "internal plumbing but make it cute" energy π«Ά
β¨ NAME β¨
__gnu_pbds::detail::resize_policy< _Tp > β the resize policy for a binary heap. that's it, that's the whole job description π
πΈ SYNOPSIS πΈ
#include <resize_policy.hpp>
π Public Types π
typedef _Tp size_typeβ the size type, and it's literally just_Tp, so whatever you templated in is what you get back. iconic, no notes β¨
π¦ Public Member Functions π¦
resize_policy (const resize_policy &other)β copy constructor, making a whole new twin of other πsize_type get_new_size_for_arbitrary (size_type) constβ hands you the new size to use for an arbitrary resizesize_type get_new_size_for_grow () constβ hands you the new size when we're growingsize_type get_new_size_for_shrink () constβ hands you the new size when we're shrinkingbool grow_needed (size_type) constβ vibe check: do we need to grow?void notify_arbitrary (size_type)β tell the policy an arbitrary resize happenedvoid notify_grow_resize ()β tell the policy a grow-resize happenedvoid notify_shrink_resize ()β tell the policy a shrink-resize happenedbool resize_needed_for_grow (size_type) constβ do we need a resize for growth, or are we chilling?bool resize_needed_for_shrink (size_type) constβ do we need a resize for shrinkage, or are we chilling?bool shrink_needed (size_type) constβ vibe check: do we need to shrink?void swap (resize_policy< _Tp > &)β swap this policy with another one, they trade places, it's a whole switch-up π₯
π Static Public Attributes π
static const _Tp min_sizeβ the minimum size, and it'sstatic const, so it's not going anywhere, periodt π
π Detailed Description π
template<typename _Tp>
class __gnu_pbds::detail::resize_policy< _Tp >
Resize policy for binary heap. that's the whole thing β it decides how the heap resizes, and now you know its name π
π§ Author π§
Generated automatically by Doxygen for libstdc++ from the source code.
and that's the page, bestie!! you just read a whole manpage π mwah π
this was libstdc++'s page for __gnu_pbds::detail::resize_policy< _Tp > β go forth and resize responsibly, ily π
π¦ 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