__GNU_PBDS::SAMPLE_RESIZE_TRIGGER(3)

πŸ“¦
version 16.2.1+r23+gd564253eb6c8 Β· 5 versions
, in arch rolling, centos-stream 10, fedora 43, fedora 44

πŸ’– 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 says sample_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 is num_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 by sample_range_hashing(), and swap().

πŸ‘‘ 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