__GNU_PARALLEL::__TRANSFORM1_SELECTOR(3cxx)
π __gnu_parallel::__transform1_selector< _It > β the whole page, bestie
okay so real talk, this is a page from the libstdc++ docs, manual section (3cxx), and honestly? it's a little cutie. Let's get into it π«Ά
β¨ NAME β¨
__gnu_parallel::__transform1_selector< _It > β it's the std::transform() __selector, the one input sequence variant. that's the whole vibe. one sequence in, no cap π
πΈ SYNOPSIS πΈ
first thing you gotta do, literally the entry fee:
#include <for_each_selectors.h>
and it inherits from __gnu_parallel::__generic_for_each_selector< _It > β so it's got the family genes, iykyk π§¬
π Public Member Functions
template<typename _Op > bool operator() (_Op &__o, _It __i)β functor execution, bestie. that's it, that's the function β¨
π¦ Public Attributes
_It _M_finish_iteratorβ the iterator on the last element processed, and yeah it's needed for some algorithms (e. g.std::transform()). lowkey important π«Ά
π Detailed Description π
so the whole struct is declared like this:
template<typename _It>
struct __gnu_parallel::__transform1_selector< _It >
and the description is literally just: "std::transform() __selector, one input sequence variant." β short, sweet, iconic. periodt π
π₯ Member Function Documentation π₯
template<typename _It > template<typename _Op > bool __gnu_parallel::__transform1_selector< _It >::operator() (_Op & __o, _It __i) [inline]
okay so this one is functor execution, and it's [inline], which is a whole mood. here's the tea on the parameters:
__oβ the operator.__iβ iterator referencing object.
that's the entire deal. no notes π
π Member Data Documentation π
template<typename _It > _It __gnu_parallel::__generic_for_each_selector< _It >::_M_finish_iterator [inherited]
this one's inherited (yes, from the parent, we love a legacy π). it's the _Iterator on last element processed β and it's needed for some algorithms (e. g. std::transform()). don't sleep on it, fr fr. β
π Author π
generated automatically by Doxygen for libstdc++ from the source code. not a human, just β¨the machineβ¨ doing its thing π
ngl the whole page is basically "it's the std::transform() selector, one input sequence variant" said in like four different fonts. iconic behaviour, honestly.
okay bestie that's the page!! it came from libst__gnu_parallel:...selector< _It >(3cxx) at the very bottom, which is the manual label, and the whole thing is courtesy of libstdc++ β go drink some water and go slay your parallel algorithms πππ¦πΈπ«Άβ¨
π¦ where this page comes from
- debian trixie: libstdc++-12-doc 12.4.0-5
- debian trixie: libstdc++-13-doc 13.3.0-16
- debian trixie: libstdc++-14-doc 14.2.0-19
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2.1
- ubuntu noble: libstdc++-11-doc 11.4.0-9ubuntu1
- ubuntu noble: libstdc++-11-doc 11.5.0-1ubuntu1~24.04.1
- ubuntu noble: libstdc++-12-doc 12.3.0-17ubuntu1
- ubuntu noble: libstdc++-12-doc 12.4.0-2ubuntu1~24.04.1
- ubuntu noble: libstdc++-13-doc 13.2.0-23ubuntu4
- ubuntu noble: libstdc++-13-doc 13.3.0-6ubuntu2~24.04.1
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- ubuntu noble: libstdc++-14-doc 14.2.0-4ubuntu2~24.04.1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1.1
- ubuntu questing: libstdc++-12-doc 12.5.0-6ubuntu1
- ubuntu questing: libstdc++-13-doc 13.4.0-4ubuntu1
- ubuntu questing: libstdc++-14-doc 14.3.0-8ubuntu1
- ubuntu questing: libstdc++-15-doc 15.2.0-4ubuntu4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms