__GNU_PARALLEL::ITERATOR_TRIPLE(3)

πŸ“¦ version 4.4.0, in nixpkgs unstable

πŸ’… 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 from Iterator1's traits. slay.
  • typedef IteratorCategory iterator_category β€” the iterator category, handed to you as-is.
  • typedef type * pointer β€” a pointer to type. classic.
  • typedef type & reference β€” a reference to type. also classic.
  • typedef void value_type β€” and the value type is void, 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 an Iterator3. so it can vibe as the third one when needed.
  • type operator+ (difference_type delta) const β€” adds delta and gives you back a type.
  • const type operator++ (int) β€” post-increment, returns const type. the (int) is just how post-increment says hi.
  • type & operator++ () β€” pre-increment, returns type &. main character energy.
  • difference_type operator- (const type &other) const β€” subtracts other, gives you a difference_type.
  • const type operator-- (int) β€” post-decrement, returns const type.
  • type & operator-- () β€” pre-decrement, returns type &.
  • type & operator= (const type &other) β€” assignment, returns type &. 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