__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 is num_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. πŸŽ€πŸ’–πŸ¦‹