__GNU_PBDS::DETAIL::RESIZE_POLICY(3)

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

πŸ’– __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 resize
  • size_type get_new_size_for_grow () const β€” hands you the new size when we're growing
  • size_type get_new_size_for_shrink () const β€” hands you the new size when we're shrinking
  • bool grow_needed (size_type) const β€” vibe check: do we need to grow?
  • void notify_arbitrary (size_type) β€” tell the policy an arbitrary resize happened
  • void notify_grow_resize () β€” tell the policy a grow-resize happened
  • void notify_shrink_resize () β€” tell the policy a shrink-resize happened
  • bool 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's static 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