__GNU_PARALLEL::GENERATE_SELECTOR(3)

πŸ“¦ version 4.4.0, in nixpkgs unstable

πŸ’– 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