__GNU_PARALLEL::__MAX_ELEMENT_REDUCT(3cxx)

okay bestie, this is the (3cxx) manual page for __gnu_parallel::__max_element_reduct< _Compare, _It > β€” yes, the whole template situation is main character energy πŸ’…

🌸 NAME 🌸

__gnu_parallel::__max_element_reduct< _Compare, _It > β€” it's the reduction for finding the maximum element, using a comparator. That's the whole name-card. No cap. 🫢

✨ SYNOPSIS ✨

#include <for_each_selectors.h>

🫢 Public Member Functions 🫢

  • __max_element_reduct (_Compare &__c) β€” this public member function signature takes _Compare &__c. Constructor vibes, but I'm just reading the signature, bestie. πŸ’–
  • _It operator() (_It __x, _It __y) β€” the call operator, taking _It __x and _It __y, and returning _It. Obsessed with a return type that actually shows up. πŸ”₯

πŸŽ€ Public Attributes πŸŽ€

  • _Compare & __comp β€” public attribute that is a reference to _Compare, named __comp. Periodt. πŸ’…

πŸ’œ Detailed Description πŸ’œ

The template pressure is real:

template<typename _Compare, typename _It>
    struct __gnu_parallel::__max_element_reduct< _Compare, _It >

And the official description is literally: β€œReduction for finding the maximum element, using a comparator.” Lowkey iconic, highkey exactly what it says. πŸ¦‹

tiny note: the source text has a feral little " right before Reduction in that struct line; it's giving formatting gremlin, not a feature πŸ’€

πŸ’€ Author πŸ’€

Generated automatically by Doxygen for libstdc++ from the source code.

That's the author section, verbatim facts, no guessing. 🫢


cute sign-off time πŸ“: the footer's source/version stamp is libstd__gnu_parallel..._Compare, _It >(3cxx), and there is no separate date printed in this page, so I'm not inventing one. Source/version vibes: libstdc++ and the manual tag (3cxx); date: not shown. Bye bestie πŸ’–