__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 to new_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. πŸŽ€