__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 juststd::size_tliving 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, everysize_type, everyswapβ 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 πβ¨
π¦ where this page comes from
- debian trixie: libstdc++-12-doc 12.4.0-5
- debian trixie: libstdc++-13-doc 13.3.0-16
- debian trixie: libstdc++-14-doc 14.2.0-19
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2.1
- ubuntu noble: libstdc++-11-doc 11.4.0-9ubuntu1
- ubuntu noble: libstdc++-11-doc 11.5.0-1ubuntu1~24.04.1
- ubuntu noble: libstdc++-12-doc 12.3.0-17ubuntu1
- ubuntu noble: libstdc++-12-doc 12.4.0-2ubuntu1~24.04.1
- ubuntu noble: libstdc++-13-doc 13.2.0-23ubuntu4
- ubuntu noble: libstdc++-13-doc 13.3.0-6ubuntu2~24.04.1
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- ubuntu noble: libstdc++-14-doc 14.2.0-4ubuntu2~24.04.1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1.1
- ubuntu questing: libstdc++-12-doc 12.5.0-6ubuntu1
- ubuntu questing: libstdc++-13-doc 13.4.0-4ubuntu1
- ubuntu questing: libstdc++-14-doc 14.3.0-8ubuntu1
- ubuntu questing: libstdc++-15-doc 15.2.0-4ubuntu4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms