__GNU_PBDS::QUADRATIC_PROBE_FN(3cxx)

okay so welcome to the __gnu_pbds::qu...fn< Size_Type >(3cxx) manual page, bestie πŸ’– this one is short and sweet and very niche.

πŸ’– NAME πŸ’–

__gnu_pbds::quadratic_probe_fn< Size_Type > β€” a probe sequence policy using square increments. That’s the whole vibe: square increments, iconic, no cap ✨

✨ SYNOPSIS ✨

First the include, and yes it’s exactly this:

#include <hash_policy.hpp>

πŸŽ€ Public Types πŸŽ€

  • typedef Size_Type size_type β€” the size type is literally Size_Type, periodt πŸ’…

πŸ’… Public Member Functions πŸ’…

  • void swap (quadratic_probe_fn< Size_Type > &other) β€” swaps with other, that’s the whole function bestie 🫢

πŸ”’ Protected Member Functions πŸ”’

  • size_type operator() (size_type i) const β€” returns the i-th offset from the hash value. Protected, so it’s giving backstage access only πŸ™ˆ

🌸 Detailed Description 🌸

The template and class situation is exactly this, quote mark and all, iykyk:

template<typename Size_Type = std::size_t>
    class __gnu_pbds::quadratic_probe_fn< Size_Type >"A probe sequence
    policy using square increments.

So yeah: template parameter defaults to std::size_t, and the class is __gnu_pbds::quadratic_probe_fn< Size_Type >. The description is literally β€œA probe sequence policy using square increments.” Slay πŸ’–

🧚 Member Function Documentation 🧚

Here’s the exact signature energy:

template<typename Size_Type  = std::size_t> size_type
    __gnu_pbds::quadratic_probe_fn< Size_Type >::operator() (size_type i)
    const [inline],  [protected]

Returns the i-th offset from the hash value. It’s [inline] and [protected], and that’s the whole main-character job: returns the i-th offset from the hash value πŸ”₯

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code. Yes bestie, Doxygen autogenerated it for libstdc++ from the source code πŸŽ€


mwah πŸ’‹ signing off from the source/version footer libstd__gnu_pbds::qu...fn< Size_Type >(3cxx); date: not shown on this page, srry 😭 🫢