__GNU_PARALLEL::ITERATOR_TRIPLE(3)
π NAME π
__gnu_parallel::iterator_triple β it's literally a triple of iterators, bestie. Every usual iterator operation gets applied to all three of the child iterators at once. Three-for-one deal, no cap. π
β¨ SYNOPSIS β¨
πΈ Public Types πΈ
typedef std::iterator_traits< Iterator1 >::difference_type difference_typeβ the difference type, borrowed straight fromIterator1's traits. slay.typedef IteratorCategory iterator_categoryβ the iterator category, handed to you as-is.typedef type * pointerβ a pointer totype. classic.typedef type & referenceβ a reference totype. also classic.typedef void value_typeβ and the value type isvoid, which is honestly iconic of it.
π¦ Public Member Functions π¦
iterator_triple (const Iterator1 &_first, const Iterator2 &_second, const Iterator3 &_third)β the constructor, taking all three iterators at once (_first,_second,_third). build the triple, periodt.operator Iterator3 () constβ converts to anIterator3. so it can vibe as the third one when needed.type operator+ (difference_type delta) constβ addsdeltaand gives you back atype.const type operator++ (int)β post-increment, returnsconst type. the(int)is just how post-increment says hi.type & operator++ ()β pre-increment, returnstype &. main character energy.difference_type operator- (const type &other) constβ subtractsother, gives you adifference_type.const type operator-- (int)β post-decrement, returnsconst type.type & operator-- ()β pre-decrement, returnstype &.type & operator= (const type &other)β assignment, returnstype &. giving copy energy.
π Public Attributes π
Iterator1 firstβ the first iterator of the trio. πIterator2 secondβ the second one. obviously.Iterator3 thirdβ and the third. the whole squad is here.
Detailed Description
template<typename Iterator1, typename Iterator2, typename Iterator3,
typename IteratorCategory> class __gnu_parallel::iterator_triple<
Iterator1, Iterator2, Iterator3, IteratorCategory >
Okay so picture this: it's a triple of iterators, right? And the usual iterator operations are applied to all three child iterators β all of them, together, in sync. That's the whole vibe check and it passes. π«Ά
It's templated on Iterator1, Iterator2, Iterator3 and IteratorCategory, so you get to plug in your own iterator types and your own category. flexible queen.
ngl, the definition lives at line 119 of file iterator.h β that's where you'll find her. π
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. so nobody hand-wrote this one, the robots did it, and honestly they ate. πβ¨
and that's the whole page, bestie β brought to you by libstdc++, dated 21 Apr 2009, signed off with love and a little sparkle π§π
π¦ 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