__gnu_pbds...ize_policy(3)

πŸ“¦
version 16.2.1+r23+gd564253eb6c8 Β· 5 versions
, in arch rolling, centos-stream 10, fedora 43, fedora 44

πŸ’– NAME πŸ’–

__gnu_pbds::sample_resize_policy β€” it's a sample resize policy, bestie. That's the whole vibe. ✨

This page comes to you straight outta the Library Functions Manual, and the page itself is __gnu_pbds...ize_policy(3). Yes the name got truncated, no it's not a glitch, that's just how the file's named. 🫢


🌸 SYNOPSIS 🌸

okay so first thing you do, right, you pull in the header:

#include <sample_resize_policy.hpp>

✨ Public Types ✨

  • typedef std::size_t size_type β€” the size type. it's a size. for sizes. πŸ’…

✨ Public Member Functions ✨

  • sample_resize_policy () β€” default constructor, the no-args classic.
  • sample_range_hashing (const sample_resize_policy &other) β€” copy constructor. yes, that's literally what it says on the page, we don't ask questions, we just report. πŸ™ˆ
  • void swap (sample_resize_policy &other) β€” swaps content. trading places, iconic behaviour. πŸ”₯

✨ Protected Member Functions ✨

these ones are protected so like, they're the inner-circle only functions. main character energy but make it protected.

  • size_type get_new_size (size_type size, size_type num_used_e) const β€” asks the universe what the new size should be.
  • bool is_resize_needed () const β€” asks the universe whether a resize is needed at all.
  • void notify_cleared () β€” tells you the table got cleared.
  • void notify_erase_search_collision () β€” tells you a search hit a collision.
  • void notify_erase_search_end () β€” tells you a search ended.
  • void notify_erase_search_start () β€” tells you a search started.
  • void notify_erased (size_type num_e) β€” tells you an element got erased.
  • void notify_find_search_collision () β€” tells you a search hit a collision.
  • void notify_find_search_end () β€” tells you a search ended.
  • void notify_find_search_start () β€” tells you a search started.
  • void notify_insert_search_collision () β€” tells you a search hit a collision.
  • void notify_insert_search_end () β€” tells you a search ended.
  • void notify_insert_search_start () β€” tells you a search started.
  • void notify_inserted (size_type num_e) β€” tells you an element got inserted.
  • void notify_resized (size_type new_size) β€” tells you the table got resized to new_size.

πŸ¦‹ Detailed Description πŸ¦‹

A sample resize policy. that's it. that's the description. short king behaviour ngl. πŸ‘‘


πŸŽ€ Member Typedef Documentation πŸŽ€

typedef std::size_t __gnu_pbds::sample_resize_policy::size_type

Size type. 🌸


πŸ’… Constructor & Destructor Documentation πŸ’…

__gnu_pbds::sample_resize_policy::sample_resize_policy ()

Default constructor. does nothing fancy, just exists, and honestly? relatable.

Referenced by sample_range_hashing(), and swap().

πŸ”₯ Member Function Documentation πŸ”₯

size_type __gnu_pbds::sample_resize_policy::get_new_size (size_type size, size_type num_used_e) const [protected]

Queries what the new size should be. it's asking, not telling. very demure.

bool __gnu_pbds::sample_resize_policy::is_resize_needed () const [inline], [protected]

Queries whether a resize is needed. yes/no energy only.

void __gnu_pbds::sample_resize_policy::notify_cleared () [protected]

Notifies the table was cleared. 🧹

void __gnu_pbds::sample_resize_policy::notify_erase_search_collision () [inline], [protected]

Notifies a search encountered a collision.

void __gnu_pbds::sample_resize_policy::notify_erase_search_end () [inline], [protected]

Notifies a search ended.

void __gnu_pbds::sample_resize_policy::notify_erase_search_start () [inline], [protected]

Notifies a search started.

void __gnu_pbds::sample_resize_policy::notify_erased (size_type num_e) [inline], [protected]

Notifies an element was erased.

void __gnu_pbds::sample_resize_policy::notify_find_search_collision () [inline], [protected]

Notifies a search encountered a collision.

void __gnu_pbds::sample_resize_policy::notify_find_search_end () [inline], [protected]

Notifies a search ended.

void __gnu_pbds::sample_resize_policy::notify_find_search_start () [inline], [protected]

Notifies a search started.

void __gnu_pbds::sample_resize_policy::notify_insert_search_collision () [inline], [protected]

Notifies a search encountered a collision.

void __gnu_pbds::sample_resize_policy::notify_insert_search_end () [inline], [protected]

Notifies a search ended.

void __gnu_pbds::sample_resize_policy::notify_insert_search_start () [inline], [protected]

Notifies a search started.

void __gnu_pbds::sample_resize_policy::notify_inserted (size_type num_e) [inline], [protected]

Notifies an element was inserted. πŸ“

void __gnu_pbds::sample_resize_policy::notify_resized (size_type new_size) [protected]

Notifies the table was resized to new_size.

__gnu_pbds::sample_resize_policy::sample_range_hashing (const sample_resize_policy & other)

Copy constructor. (again, that's verbatim what's printed, we're just the messenger πŸ’€)

References sample_resize_policy().

void __gnu_pbds::sample_resize_policy::swap (sample_resize_policy & other) [inline]

Swaps content. πŸ”„

References sample_resize_policy().

🌈 Author 🌈

Generated automatically by Doxygen for libstdc++ from the source code. so nobody hand-wrote this, a robot did it, and honestly the robot ate. πŸ‘‘


and that's the whole page bestie!! πŸ’– this one lives in libstdc++ (that's the source/version, straight from the footer) and it's filed under __gnu_pbds...ize_policy(3) in the Library Functions Manual. no date on this footer so we're not gonna make one up β€” we don't do that here. mwah, go read your headers, 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
  • centos-stream 10: gcc-toolset-15-libstdc++-docs 15.2.1-8.1.el10 Β· 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
  • centos-stream 10: gcc-toolset-16-libstdc++-docs 16.2.1-1.3.el10 Β· 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
  • centos-stream 10: libstdc++-docs 14.4.1-4.el10 Β· 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 43: libstdc++-docs 15.2.1-2.fc43 Β· 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 43: libstdc++-docs 15.3.1-1.fc43 Β· 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.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