__gnu_pbds::sample_resize_trigger(3cxx)
π NAME π
Okay bestie, gather round β this is __gnu_pbds::sample_resize_trigger, and it's literally a sample resize trigger policy. That's the whole vibe. β¨
This page lives in the 3cxx manual section under the __gnu_pbds namespace, and it's about to be your new hyperfixation. π
β¨ SYNOPSIS β¨
First things first, you gotta pull it in:
#include <sample_resize_trigger.hpp>
π¦ Public Types π¦
typedef std::size_t size_typeβ bestie this is just the size type, that's it, that's the whole personality. π
πΈ Public Member Functions πΈ
sample_resize_trigger ()β the default constructor, no thoughts head empty, iconic. π«Άsample_range_hashing (const sample_resize_trigger &)β copy constructor. Yes, that's the name it's listed under, don't come for me, I just report the facts. πvoid swap (sample_resize_trigger &)β swaps the content. trade places, main character energy. π₯
π§ Protected Member Functions π§
Okay so these are all protected β lowkey exclusive club, iykyk. π
bool is_grow_needed (size_type size, size_type num_entries) constβ asks the big question: is a grow needed? πbool is_resize_needed () constβ asks the other big question: is a resize needed? πvoid notify_cleared ()β tells you the table got cleared. bye bye data β¨void notify_erase_search_collision ()β lets you know a search hit a collision. πvoid notify_erase_search_end ()β the search ended, we're so back. π¦void notify_erase_search_start ()β the search started, here we go. πvoid notify_erased (size_type num_entries)β an element got erased, rip bozo. πvoid notify_externally_resized (size_type new_size)β the table got resized from the outside, not by you. πvoid notify_find_search_collision ()β a find-search encountered a collision. βvoid notify_find_search_end ()β the find-search ended. πvoid notify_find_search_start ()β the find-search started. πvoid notify_insert_search_collision ()β an insert-search encountered a collision. π§void notify_insert_search_end ()β the insert-search ended. πΈvoid notify_insert_search_start ()β the insert-search started. π₯void notify_inserted (size_type num_entries)β an element was inserted, and just so you know, the total number of entries in the table isnum_entries. periodt. πvoid notify_resized (size_type new_size)β the table was resized as a result of this object's signifying that a resize is needed. So like... it was the reason. main character behavior fr fr. π
π Detailed Description π
A sample resize trigger policy. That's the description. That's it. It's giving minimalism, and honestly? Slay. β¨
π Member Typedef Documentation π
typedef std::size_t __gnu_pbds::sample_resize_trigger::size_type
Size type. Tiny description for a tiny little type. π
π¦ Constructor & Destructor Documentation π¦
__gnu_pbds::sample_resize_trigger::sample_resize_trigger ()
Default constructor. no notes. perfect. π
β 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. The vibe check of growth, basically. π±
bool __gnu_pbds::sample_resize_trigger::is_resize_needed () const [inline], [protected]
Queries whether a resize is needed. πΈ
void __gnu_pbds::sample_resize_trigger::notify_cleared () [protected]
Notifies the table was cleared. π§Ή
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. π
void __gnu_pbds::sample_resize_trigger::notify_externally_resized (size_type new_size) [protected]
Notifies the table was resized externally. Someone else did it, not us. π
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. (yes the lowercase "the" is part of the original, do not perceive me) π«Ά
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. Look at her, making things happen. π
__gnu_pbds::sample_resize_trigger::sample_range_hashing (const sample_resize_trigger &)
Copy constructor. (Yes, it's called sample_range_hashing in the listing while the class is sample_resize_trigger β that's just how the page is, bestie, I don't make the rules. π
)
void __gnu_pbds::sample_resize_trigger::swap (sample_resize_trigger &) [inline]
Swaps content. trading spots like it's nothing. π₯
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. So no human author to thank β the robots ate, and honestly they ate. π€β¨
And that's the page!! Mwah π β this cutie came to you from libstdc++, auto-generated by Doxygen, and the footer's over there going libst__gnu_pbds::sample_resize_trigger(3cxx) (yes it's cut off like that in the original, she's a little quirky π). Go forth and trigger those resizes, bestie. πππ¦
π¦ where this page comes from
- debian trixie: libstdc++-12-doc 12.4.0-5
- debian trixie: libstdc++-13-doc 13.3.0-16
- debian trixie: libstdc++-14-doc 14.2.0-19
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2.1
- ubuntu noble: libstdc++-11-doc 11.4.0-9ubuntu1
- ubuntu noble: libstdc++-11-doc 11.5.0-1ubuntu1~24.04.1
- ubuntu noble: libstdc++-12-doc 12.3.0-17ubuntu1
- ubuntu noble: libstdc++-12-doc 12.4.0-2ubuntu1~24.04.1
- ubuntu noble: libstdc++-13-doc 13.2.0-23ubuntu4
- ubuntu noble: libstdc++-13-doc 13.3.0-6ubuntu2~24.04.1
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- ubuntu noble: libstdc++-14-doc 14.2.0-4ubuntu2~24.04.1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1.1
- ubuntu questing: libstdc++-12-doc 12.5.0-6ubuntu1
- ubuntu questing: libstdc++-13-doc 13.4.0-4ubuntu1
- ubuntu questing: libstdc++-14-doc 14.3.0-8ubuntu1
- ubuntu questing: libstdc++-15-doc 15.2.0-4ubuntu4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms