__GNU_PBDS::SAMPLE_RESIZE_TRIGGER(3)
π NAME π
__gnu_pbds::sample_resize_trigger β bestie, it's a sample resize trigger policy. That's the whole vibe. β¨
(also hi, this is a page from the Library Functions Manual, so likeβ¦ the reference shelf, not the tutorial shelf, iykyk π«Ά)
πΈ SYNOPSIS πΈ
#include <sample_resize_trigger.hpp>
β¨ Public Types β¨
typedef std::size_t size_typeβ the size type. literally just the size type. iconic of it. π
π Public Member Functions π
sample_resize_trigger ()β default constructor, the classic. no arguments, no drama.sample_range_hashing (const sample_resize_trigger &)β copy constructor. (yes, the name sayssample_range_hashing, no we are not editing it, the source code said what it said π)void swap (sample_resize_trigger &)β swaps content. trading places, but for a resize trigger. π
π¦ Protected Member Functions π¦
bool is_grow_needed (size_type size, size_type num_entries) constβ asks whether a grow is needed.bool is_resize_needed () constβ asks whether a resize is needed.void notify_cleared ()β tells it the table was cleared.void notify_erase_search_collision ()β tells it a search hit a collision.void notify_erase_search_end ()β tells it a search ended.void notify_erase_search_start ()β tells it a search started.void notify_erased (size_type num_entries)β tells it an element was erased.void notify_externally_resized (size_type new_size)β tells it the table was resized externally.void notify_find_search_collision ()β tells it a search hit a collision.void notify_find_search_end ()β tells it a search ended.void notify_find_search_start ()β tells it a search started.void notify_insert_search_collision ()β tells it a search hit a collision.void notify_insert_search_end ()β tells it a search ended.void notify_insert_search_start ()β tells it a search started.void notify_inserted (size_type num_entries)β tells it an element was inserted. the total number of entries in the table isnum_entries. okay so this one actually tells you the count, main character energy fr fr.void notify_resized (size_type new_size)β tells it the table was resized as a result of this object's signifying that a resize is needed. it caused it. it's the reason. π
π Detailed Description π
A sample resize trigger policy. that's the description, that's the whole thing, it is what it is and what it is is a sample resize trigger policy π§
π Member Typedef Documentation π
typedef std::size_t __gnu_pbds::sample_resize_trigger::size_type
Size type. yeah. it's the size type. obsessed with the brevity honestly β
π Constructor & Destructor Documentation π
__gnu_pbds::sample_resize_trigger::sample_resize_trigger ()
Default constructor. the blueprint behaviour, the opening scene, the pilot episode β¨
Referenced bysample_range_hashing(), andswap().
π Member Function Documentation π
bool __gnu_pbds::sample_resize_trigger::is_grow_needed (size_type size, size_type num_entries) const [inline], [protected]
Queries whether a grow is needed. just a lil check-in bestie π±
bool __gnu_pbds::sample_resize_trigger::is_resize_needed () const [inline], [protected]
Queries whether a resize is needed. same energy, different question π«
void __gnu_pbds::sample_resize_trigger::notify_cleared () [protected]
Notifies the table was cleared. wiped. fresh start. clean slate. πΈ
void __gnu_pbds::sample_resize_trigger::notify_erase_search_collision () [inline], [protected]
Notifies a search encountered a collision.
void __gnu_pbds::sample_resize_trigger::notify_erase_search_end () [inline], [protected]
Notifies a search ended.
void __gnu_pbds::sample_resize_trigger::notify_erase_search_start () [inline], [protected]
Notifies a search started.
void __gnu_pbds::sample_resize_trigger::notify_erased (size_type num_entries) [inline], [protected]
Notifies an element was erased. gone. not coming back. π
void __gnu_pbds::sample_resize_trigger::notify_externally_resized (size_type new_size) [protected]
Notifies the table was resized externally. not by us. by someone else. we're just hearing about it π
void __gnu_pbds::sample_resize_trigger::notify_find_search_collision () [inline], [protected]
Notifies a search encountered a collision.
void __gnu_pbds::sample_resize_trigger::notify_find_search_end () [inline], [protected]
Notifies a search ended.
void __gnu_pbds::sample_resize_trigger::notify_find_search_start () [inline], [protected]
Notifies a search started.
void __gnu_pbds::sample_resize_trigger::notify_insert_search_collision () [inline], [protected]
Notifies a search encountered a collision.
void __gnu_pbds::sample_resize_trigger::notify_insert_search_end () [inline], [protected]
Notifies a search ended.
void __gnu_pbds::sample_resize_trigger::notify_insert_search_start () [inline], [protected]
Notifies a search started.
void __gnu_pbds::sample_resize_trigger::notify_inserted (size_type num_entries) [inline], [protected]
Notifies an element was inserted. the total number of entries in the table is num_entries. π
void __gnu_pbds::sample_resize_trigger::notify_resized (size_type new_size) [protected]
Notifies the table was resized as a result of this object's signifying that a resize is needed. it said "resize" and then a resize happened. cause and effect, bestie, slay π₯
__gnu_pbds::sample_resize_trigger::sample_range_hashing (const sample_resize_trigger & )
Copy constructor. the name up there really does say sample_range_hashing and we are keeping every single character of it, no cap π«Ά
References sample_resize_trigger().
void __gnu_pbds::sample_resize_trigger::swap (sample_resize_trigger & ) [inline]
Swaps content. π
References sample_resize_trigger().
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. so like, not a human, a robot did this, and honestly? it ate. π€β¨
and that's the page bestie π
this one lives in the libstdc++ manual, and it's signing off from the source code era β Doxygen-generated, libstdc++ flavoured, and yes, it's giving __gnu_pbds...ize_trigger(3) in the corner because the title got a lil truncated. periodt. πππ¦
π¦ 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