__gnu_pbds::sample_resize_policy(3cxx)
πΈ NAME πΈ
Bestie, meet __gnu_pbds::sample_resize_policy β thatβs the title, and this page lives in the 3cxx manual. It is, and I cannot stress this enough, a sample resize policy. π
β¨ SYNOPSIS β¨
#include <sample_resize_policy.hpp>
π Public Types π
typedef std::size_t size_typeβ Size type. Literally the type used for sizes, no cap. π
π Public Member Functions π
sample_resize_policy ()β Default constructor. The classic βno args, just vibesβ entrance. β¨sample_range_hashing (const sample_resize_policy &other)β Copy constructor. Copying the content, bestie. π«Άvoid swap (sample_resize_policy &other)β Swaps content. Trading places, but make it C++. π
π¦ Protected Member Functions π¦
size_type get_new_size (size_type size, size_type num_used_e) constβ Queries what the new size should be. The policy is checking its notes. πbool is_resize_needed () constβ Queries whether a resize is needed. A little vibe check for resizing. βvoid notify_cleared ()β Notifies the table was cleared. βItβs empty now, bestie.β π§Όvoid notify_erase_search_collision ()β Notifies a search encountered a collision. Oops, collision drama. π₯void notify_erase_search_end ()β Notifies a search ended. Search wrap-up era. π¬void notify_erase_search_start ()β Notifies a search started. Search era begins. πvoid notify_erased (size_type num_e)β Notifies an element was erased. Bye-bye, element. πvoid notify_find_search_collision ()β Notifies a search encountered a collision. Collision again, iconic. π«void notify_find_search_end ()β Notifies a search ended. Thatβs a wrap on the search. πvoid notify_find_search_start ()β Notifies a search started. And weβre searching. πvoid notify_insert_search_collision ()β Notifies a search encountered a collision. Collision notification, but for insert. πvoid notify_insert_search_end ()β Notifies a search ended. Search concluded. βvoid notify_insert_search_start ()β Notifies a search started. Search kickoff. πvoid notify_inserted (size_type num_e)β Notifies an element was inserted. New element just dropped. πvoid notify_resized (size_type new_size)β Notifies the table was resized tonew_size. Fresh size, fresh me. π₯
π« Detailed Description π«
A sample resize policy. Thatβs the whole note. Short, sweet, and literally the description. π
π§ Member Typedef Documentation π§
π size_type
typedef std::size_t __gnu_pbds::sample_resize_policy::size_type
Size type. Thatβs the assignment. π
π₯ Constructor & Destructor Documentation π₯
π __gnu_pbds::sample_resize_policy::sample_resize_policy ()
Default constructor. The default entrance has entered. β¨
π Member Function Documentation π
πΈ get_new_size
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. Size consultation hours are open. π
π¦ is_resize_needed
bool __gnu_pbds::sample_resize_policy::is_resize_needed () const [inline], [protected]
Queries whether a resize is needed. The resize question of the century. π
π notify_cleared
void __gnu_pbds::sample_resize_policy::notify_cleared () [protected]
Notifies the table was cleared. Clean slate energy. π§Ό
π₯ notify_erase_search_collision
void __gnu_pbds::sample_resize_policy::notify_erase_search_collision () [inline], [protected]
Notifies a search encountered a collision. Collision core. π
β¨ notify_erase_search_end
void __gnu_pbds::sample_resize_policy::notify_erase_search_end () [inline], [protected]
Notifies a search ended. Search over, periodt. π¬
π notify_erase_search_start
void __gnu_pbds::sample_resize_policy::notify_erase_search_start () [inline], [protected]
Notifies a search started. Search starting, bestie. π
π notify_erased
void __gnu_pbds::sample_resize_policy::notify_erased (size_type num_e) [inline], [protected]
Notifies an element was erased. Gone but not forgotten. π«Ά
π« notify_find_search_collision
void __gnu_pbds::sample_resize_policy::notify_find_search_collision () [inline], [protected]
Notifies a search encountered a collision. Same collision energy, find edition. π
π notify_find_search_end
void __gnu_pbds::sample_resize_policy::notify_find_search_end () [inline], [protected]
Notifies a search ended. The find search has left the chat. π
π notify_find_search_start
void __gnu_pbds::sample_resize_policy::notify_find_search_start () [inline], [protected]
Notifies a search started. Find search, activate. β
π notify_insert_search_collision
void __gnu_pbds::sample_resize_policy::notify_insert_search_collision () [inline], [protected]
Notifies a search encountered a collision. Insert search said βcollision?!β π₯
β notify_insert_search_end
void __gnu_pbds::sample_resize_policy::notify_insert_search_end () [inline], [protected]
Notifies a search ended. Insert search finale. π
πΈ notify_insert_search_start
void __gnu_pbds::sample_resize_policy::notify_insert_search_start () [inline], [protected]
Notifies a search started. Insert search origin story. π
π notify_inserted
void __gnu_pbds::sample_resize_policy::notify_inserted (size_type num_e) [inline], [protected]
Notifies an element was inserted. New element, main character energy. π₯
π§ notify_resized
void __gnu_pbds::sample_resize_policy::notify_resized (size_type new_size) [protected]
Notifies the table was resized to new_size. Resize glow-up complete. π«
π«Ά sample_range_hashing
__gnu_pbds::sample_resize_policy::sample_range_hashing (const sample_resize_policy & other)
Copy constructor. Weβre keeping the signature exactly as written, bestie. π
π swap
void __gnu_pbds::sample_resize_policy::swap (sample_resize_policy & other) [inline]
Swaps content. Switcheroo, but documented. β¨
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. The robot typist ate, honestly. π€π
Cutie sign-off π«Ά: source/version: libstd / libstdc++, from the 3cxx manual. No separate date is shown on this footer, so Iβm not making one up β periodt. π
π¦ 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