__GNU_PARALLEL::ITERATOR_PAIR(3)
π NAME π
Hey bestie! π You're reading __gnu_para...erator_pair(3) from the Library Functions Manual β yes, that truncated-looking header is literally the vibe. This page is all about __gnu_parallel::iterator_pair: a pair of iterators where the usual iterator operations are applied to both child iterators. No cap. β¨
β¨ SYNOPSIS β¨
Okay so here's the inheritance tea: it inherits from pair< Iterator1, Iterator2 >. π«Ά
πΈ Public Types πΈ
These are the public typedefs, exactly as written, bestie:
difference_typeβtypedef traits_type::difference_type difference_typefirst_typeβtypedef Iterator1 first_typeiterator_categoryβtypedef IteratorCategory iterator_categorypointerβtypedef type * pointerreferenceβtypedef type & referencesecond_typeβtypedef Iterator2 second_typetraits_typeβtypedef std::iterator_traits< Iterator1 > traits_typevalue_typeβtypedef void value_type
π Public Member Functions π
The whole member-function roster, and yes, every signature is copy-pasted exactly with love:
iterator_pair (const Iterator1 &first, const Iterator2 &second)β the constructor, takingfirstandsecondas const refs.operator Iterator2 () constβ a conversion operator toIterator2.type operator+ (difference_type delta) constβ the plus operator, takingdelta.const type operator++ (int)β the post-increment operator, returningconst type.type & operator++ ()β the pre-increment operator, returningtype &.difference_type operator- (const type &other) constβ the minus operator, takingother.const type operator-- (int)β the post-decrement operator, returningconst type.type & operator-- ()β the pre-decrement operator, returningtype &.type & operator= (const type &other)β the assignment operator, takingother.void swap (pair &&__p)β the swap function, taking__p.
π¦ Public Attributes π¦
Iterator1 firstβ public attributefirst, living its best life.Iterator2 secondβ public attributesecond, also iconic.
π Detailed Description π
Here's the template moment, bestie:
template<typename Iterator1, typename Iterator2, typename IteratorCategory>
class __gnu_parallel::iterator_pair< Iterator1, Iterator2, IteratorCategory >
A pair of iterators. The usual iterator operations are applied to both child iterators. That's the whole point, and it ate. π
Definition at line 44 of file iterator.h.
π§ Member Typedef Documentation π§
typedef Iterator1 std::pair< Iterator1 , Iterator2 >::first_type[inherited] βfirst_typeis the first bound type. Definition at line 69 of filestl_pair.h.typedef Iterator2 std::pair< Iterator1 , Iterator2 >::second_type[inherited] βsecond_typeis the second bound type. Definition at line 70 of filestl_pair.h.
π Member Data Documentation π
Iterator1 std::pair< Iterator1 , Iterator2 >::first[inherited] βfirstis a copy of the first object. Definition at line 72 of filestl_pair.h.Iterator2 std::pair< Iterator1 , Iterator2 >::second[inherited] βsecondis a copy of the second object. Definition at line 73 of filestl_pair.h.
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. So yeah, the robots wrote it, and they understood the assignment. π€β¨
Okay bestie, that's the whole page! Footer energy: source/version libstdc++, date 21 Apr 2009, and the footer tag is __gnu_para...erator_pair(3). π
π
π¦ 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