__gnu_pbds...ize_policy(3)
π 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 tonew_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 bysample_range_hashing(), andswap().
π₯ 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