__GNU_PARALLEL::__IDENTITY_SELECTOR(3cxx)

πŸ’– NAME πŸ’–

__gnu_parallel::__identity_selector< _It > is the main character of this 3cxx manual page, bestie. Its whole personality is: Selector that just returns the passed iterator. No cap, that's the tea. 🫢

✨ SYNOPSIS ✨

Okay so first you gotta bring in the header:

#include <for_each_selectors.h>

It inherits from __gnu_parallel::__generic_for_each_selector< _It > β€” family tree, slay. 🌳

🌸 Public Member Functions 🌸

  • template<typename _Op > _It operator() (_Op __o, _It __i) β€” Functor execution. That's the one job, and it ate. πŸ’…

πŸŽ€ Public Attributes πŸŽ€

  • _It _M_finish_iterator β€” _Iterator on last element processed; needed for some algorithms (e. g. std::transform()). Lowkey important for those transform girlies. ✨

πŸ¦‹ Detailed Description πŸ¦‹

Here's the struct line exactly, weird little quote mark and all β€” not me touching it, I promise:

template<typename _It>
    struct __gnu_parallel::__identity_selector< _It >"Selector that just
    returns the passed iterator.

The vibe check: it returns the iterator you passed in. That's it. That's the selector. Iconic minimalism. πŸŽ€

πŸ’… Member Function Documentation πŸ’…

πŸ”₯ operator() πŸ”₯

template<typename _It > template<typename _Op > _It
    __gnu_parallel::__identity_selector< _It >::operator() (_Op __o, _It
    __i) [inline]

Functor execution. Periodt. It's inline, it's cute, it's doing the functor thing. πŸ’…

🌸 Parameters 🌸

  • __o β€” Operator (unused). Not me ignoring him, he's literally marked unused. πŸ™ˆ
  • __i β€” iterator referencing object. This is the one that matters, bestie. 🎯

✨ Returns ✨

Passed iterator. It gives you back exactly what you handed it. No plot twist. πŸ¦‹

πŸ‘‘ Member Data Documentation πŸ‘‘

🌈 _M_finish_iterator 🌈

template<typename _It > _It __gnu_parallel::__generic_for_each_selector< _It
    >::_M_finish_iterator [inherited]

_Iterator on last element processed; needed for some algorithms (e. g. std::transform()). Yes bestie, it's inherited β€” it comes from the generic selector side of the family. πŸ‘‘

⭐ Author ⭐

Generated automatically by Doxygen for libstdc++ from the source code. So this page was not hand-written by a tumblr girl, it's Doxygen's child. Still iconic. 😭✨


Okay cute sign-off: the footer source/version string is libst__gnu_parallel:...selector< _It >(3cxx). There's no date shown in the page I was handed, so I'm not inventing one β€” fr fr, no cap. Bye bestie, go return that iterator. πŸ’–πŸ¦‹βœ¨