__gnu_para...eUnguarded(3)
π __gnu_para...eUnguarded(3) π
okay bestie, this is the Library Functions Manual page for __gnu_para...eUnguarded(3), and we're about to make a loser tree sound iconic. It's giving C++ template realness, but I promise it's not scary. π«Ά
β¨ NAME β¨
__gnu_parallel::LoserTreeUnguarded β stable implementation of unguarded LoserTree. That's the name, that's the vibe, no cap. π
πΈ SYNOPSIS πΈ
Inherits LoserTreeUnguardedBase< T, Comparator >. Yes, that's the parent class, and it said "go forth and be unguarded." π
π«Ά Public Member Functions π«Ά
void delete_min_insert (T key, bool)β signature snapped exactly like this; thatboolhas no name and we are not fixing it.int get_min_source ()β returns anint, and the empty parentheses are part of the look.void init ()β takes nothing, returns nothing, still booked and busy.unsigned int init_winner (unsigned int root)β takes anunsigned int root, gives back anunsigned int. iconic.void insert_start (const T &key, int source, bool)βconst T &key,int source, and another mysterious unnamedbool. we respect the mystery.LoserTreeUnguarded (unsigned int _k, const T _sentinel, Comparator _comp=std::less< T >())β constructor with the default argumentstd::less< T >()exactly as written. periodt.
π¦ Protected Attributes π¦
Comparator compβ protected attribute, very demure, very mindful.unsigned int ikβ also protected. don't touch, bestie.unsigned int kβ yes,kis here too.Loser * losersβ pointer namedlosers, and honestly? main character energy.unsigned int offsetβ the final protected attribute, slaying inunsigned int.
π Detailed Description π
template<bool stable, typename T, typename Comparator> class
__gnu_parallel::LoserTreeUnguarded< stable, T, Comparator >
Stable implementation of unguarded LoserTree. π
The unstable variant is selected below with partial specialization. that's the exact tea, don't forget it.
Definition at line 617 of file losertree.h. go look, it's literally right there. π
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. so yeah, Doxygen did the autogenerated thing. π«Ά
k bye bestie π β this page is from libstdc++, dated 21 Apr 2009, and it's literally __gnu_para...eUnguarded(3). mwah. π
π¦ where this page comes from
- nixpkgs unstable: std-man-pages 4.4.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms