__gnu_para...ent_reduct(3)

πŸ“¦ version 4.4.0, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, welcome to __gnu_para...ent_reduct(3) from the Library Functions Manual β€” yes, the manual name is folded in right here at the top, slay πŸ’…. The star of the show is __gnu_parallel::max_element_reduct, and it's literally a reduction for finding the maximum element, using a comparator. Periodt.


✨ SYNOPSIS ✨

Here's the public API vibe check, no cap:

🫢 Public Member Functions

  • max_element_reduct (Comp &c) β€” a public member function that takes Comp &c.
  • It operator() (It x, It y) β€” the call operator; it takes It x and It y and returns It.

πŸŽ€ Public Attributes

  • Comp & comp β€” the public attribute, a reference to Comp named comp.

🌈 Detailed Description 🌈

The struct definition is giving main character energy:

template<typename Comp, typename It> struct
       __gnu_parallel::max_element_reduct< Comp, It >

It's literally a reduction for finding the maximum element, using a comparator. Obsessed.

Definition at line 327 of file for_each_selectors.h β€” iykyk πŸ“.


πŸ’œ Author πŸ’œ

This page was generated automatically by Doxygen for libstdc++ from the source code β€” not me, I'm just the messenger 🫢.

mwah πŸ’‹ β€” source/version libstdc++, date 21 Apr 2009, page __gnu_para...ent_reduct(3).

πŸ“¦ where this page comes from