__GNU_PARALLEL::GENERATE_SELECTOR(3)
π NAME π
__gnu_parallel::generate_selector β bestie, it's the std::generate() selector. That's the whole vibe. π
Oh and hey, real quick before we dive in β you're reading the Library Functions Manual page for this one, the <rainbow>__gnu_para...te_selector(3)</rainbow> entry, so likeβ¦ welcome, you're in the right place, slay. β¨
π¦ SYNOPSIS π¦
Okay so the tea is it inherits from generic_for_each_selector< It >. Family tree matters, iykyk. π
πΈ Public Member Functions πΈ
template<typename Op > bool operator() (Op &o, It i)
π Public Attributes π
It finish_iterator
β¨ Detailed Description β¨
Okay so picture this:
template<typename It> struct __gnu_parallel::generate_selector< It >
It's literally the std::generate() selector. That's the whole personality. Main character energy honestly. π
And if you ever need to cite your sources (respect), it lives at Definition at line 70 of file for_each_selectors.h. Note it, bestie. π
π Member Function Documentation π
Here's the full glow-up of the functor:
template<typename It> template<typename Op > bool
__gnu_parallel::generate_selector< It >::operator() (Op & o, It i)
[inline]
What does it do? Functor execution. That's it, that's the job. π
Parameters:
oβ the Operator. Your ops guy. π«Άiβ Iterator referencing object. It's pointing at the thing, respectfully. π―
Found at Definition at line 77 of file for_each_selectors.h. Cute. πΈ
π¦ Member Data Documentation π¦
Okay so this one is inherited, not homegrown β look at it:
It __gnu_parallel::generic_for_each_selector< It >::finish_iterator
[inherited]
It's the Iterator on last element processed β and lowkey it's needed for some algorithms (e. g. std::transform()). So like, don't sleep on it. π
Tracked down to Definition at line 48 of file for_each_selectors.h. Iconic. β
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. So no human wrote this, it's a robot's magnum opus, and honestly? Ate. π€π
Reminder bestie: this page is here to tell you what the selector is, not to invent new behaviour for it. No cap, no guessing. π
And that's a wrap! π This lil masterpiece is libstdc++'s, dated 21 Apr 2009, filed under __gnu_para...te_selector(3). Mwah, bye! πβ¨
π¦ 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