__gnu_pbds::sample_probe_fn(3cxx)

πŸ’… __gnu_pbds::sample_probe_fn β€” the libstdc++ manual, section 3cxx πŸŽ€

okay so bestie, gather round, because we're about to read a whole manpage together and honestly? it's giving tiny but mighty. this one lives in the __gnu_pbds fam and it's literally just a sample probe policy β€” like, a template-y little demo of what a probe policy even looks like. no cap. ✨


🌸 NAME 🌸

__gnu_pbds::sample_probe_fn β€” a sample probe policy. that's it. that's the whole thing. she's a demo, she's iconic, she's here to show you the vibes. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <sample_probe_fn.hpp>

πŸ‘‘ Public Types

  • typedef std::size_t size_type β€” the size type, and yes she's just std::size_t living her best life. 🫢

πŸŽ€ Public Member Functions

  • sample_probe_fn () β€” the default constructor, aka the "no thoughts, just vibes" way to make one. 🌈
  • sample_probe_fn (const sample_probe_fn &) β€” the copy constructor, for when you want a twin. not me making a duplicate. 😭
  • void swap (sample_probe_fn &) β€” swaps content, lowkey the most satisfying thing a class can do. πŸ”₯

πŸ”’ Protected Member Functions

  • size_type operator() (key_const_reference r_key, size_type i) const β€” returns the i-th offset from the hash value of some key r_key. like, you hand her a key and an index and she tells you where to go next. main character energy fr fr. ⭐

πŸ’– Detailed Description πŸ’–

A sample probe policy. highkey that's the whole description, she's not verbose, she knows what she is. sample. probe. policy. periodt. 🧚


πŸ’œ Constructor & Destructor Documentation πŸ’œ

__gnu_pbds::sample_probe_fn::sample_probe_fn ()

Default constructor. does exactly what it says on the tin, bestie β€” nothing extra, nothing hidden. πŸ“

__gnu_pbds::sample_probe_fn::sample_probe_fn (const sample_probe_fn &)

Copy constructor. makes a little copy, adorable, ten out of ten. πŸŽ€


✨ Member Function Documentation ✨

size_type __gnu_pbds::sample_probe_fn::operator() (key_const_reference r_key, size_type i) const [inline], [protected]

Returns the i-th offset from the hash value of some key r_key. that's the assignment. that's what she does. protected and inline, so she's a little exclusive but she's efficient about it. πŸ’…

void __gnu_pbds::sample_probe_fn::swap (sample_probe_fn &) [inline]

Swaps content. inline. chef's kiss. 🫢


πŸ¦‹ Author πŸ¦‹

Generated automatically by Doxygen for libstdc++ from the source code. so like, no human wrote this, a robot did, and honestly? she ate. πŸ”₯


ok that's the whole page!! every flag, every constructor, every size_type, every swap β€” all accounted for. nothing skipped, nothing invented, just vibes + facts. πŸ’–

and that's a wrap on this little doc from libstdc++, served up in the __gnu_pbds::sample_probe_fn(3cxx) manual page β€” mwah, go be a probe policy bestie πŸ’œβœ¨