__gnu_para...reePointer(3)

πŸ“¦ version 4.4.0, in nixpkgs unstable

okay so bestie, welcome to __gnu_para...reePointer(3) from the Library Functions Manual πŸ’…βœ¨ we’re talking about __gnu_parallel::LoserTreePointer, and this page is short but it is still giving main-character documentation energy.

πŸŽ€ NAME πŸŽ€

__gnu_parallel::LoserTreePointer - Stable LoserTree implementation.

🌸 SYNOPSIS 🌸

πŸ¦‹ Inherits πŸ¦‹

Inherits LoserTreePointerBase< T, Comparator >.

πŸ’… Public Member Functions πŸ’…

here’s the full public member function lineup, no cap β€” signatures exactly as the page lists them:

  • void delete_min_insert (const T &key, bool sup) β€” that’s the whole signature, bestie.
  • int get_min_source () β€” returns int, takes no args.
  • void init () β€” no parameters, just init.
  • unsigned int init_winner (unsigned int root) β€” takes unsigned int root, returns unsigned int.
  • void insert_start (const T &key, int source, bool sup) β€” exact signature, no edits.
  • LoserTreePointer (unsigned int _k, Comparator _comp=std::less< T >()) β€” the constructor, literally.
that’s the whole public list β€” no extra signatures hiding in the group chat πŸ’€

πŸŽ€ Protected Attributes πŸŽ€

these are the protected data members, so they’re lowkey inside-the-club only:

  • Comparator comp
  • unsigned int ik
  • unsigned int k
  • Loser * losers
  • unsigned int offset

🌈 Detailed Description 🌈

template<bool stable, typename T, typename Comparator> class
    __gnu_parallel::LoserTreePointer< stable, T, Comparator >

the class description is literally: Stable LoserTree implementation.

the source also says: The unstable variant is implemented using partial instantiation below.

and the exact location note is: Definition at line 394 of file losertree.h.

🫢 Author 🫢

the author/credit line is exactly: Generated automatically by Doxygen for libstdc++ from the source code.

ngl, that’s the whole author section β€” Doxygen did the typing, bestie πŸ’–


signing off with the footer tea: this is libstdc++, dated 21 Apr 2009, and the page title in the footer is __gnu_para...reePointer(3) πŸŽ€βœ¨ periodt πŸ’…

πŸ“¦ where this page comes from