__GNU_PBDS::LINEAR_PROBE_FN(3cxx)

πŸ’– NAME πŸ’–

Okay bestie, this is the __gnu_pbds::lin...fn< Size_Type >(3cxx) page β€” that 3cxx is the manual name, and the class in question is __gnu_pbds::linear_probe_fn< Size_Type >. It’s a probe sequence policy using fixed increments. No cap. πŸ¦‹

✨ SYNOPSIS ✨

First things first, you include this:

#include <hash_policy.hpp>

πŸŽ€ Public Types πŸŽ€

  • size_type β€” this is just a typedef for Size_Type, and the page spells it out exactly like this:
typedef Size_Type size_type

🫢 Public Member Functions 🫢

  • swap β€” the one public member function has this exact signature:
void swap (linear_probe_fn< Size_Type > &other)

That’s it, bestie β€” other is right there by reference. πŸ’…

🧚 Protected Member Functions 🧚

  • operator() β€” this protected member function has this exact signature:
size_type operator() (size_type i) const

Returns the i-th offset from the hash value. That’s the whole vibe check. ✨

🌸 Detailed Description 🌸

Here’s the class template in all its glory:

template<typename Size_Type = std::size_t>
class __gnu_pbds::linear_probe_fn< Size_Type >

And the description is literally: β€œA probe sequence policy using fixed increments.” She’s simple, she’s iconic, she’s giving main character energy. πŸ‘‘

πŸ‘‘ Member Function Documentation πŸ‘‘

Here’s the full documented operator, exact code energy:

template<typename Size_Type  = std::size_t> size_type
__gnu_pbds::linear_probe_fn< Size_Type >::operator() (size_type i) const

It’s tagged [inline], [protected], and its description is Returns the i-th offset from the hash value. 🫢

πŸ’… Author πŸ’…

No cap, this is the author line verbatim:

Generated automatically by Doxygen for libstdc++ from the source code.

πŸ’– That’s the whole page, bestie! Source/version vibes: it’s from libstdc++, and the footer has the 3cxx label but no date listed, so I’m not inventing one. Periodt. πŸ’–