.TH "__gnu_parallel::_IteratorPair< _Iterator1, _Iterator2, _IteratorCategory >" 3 "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME __gnu_parallel::_IteratorPair< _Iterator1, _Iterator2, _IteratorCategory > \- A pair of iterators\&. The usual iterator operations are applied to both child iterators\&. .SH SYNOPSIS .br .PP .PP \fR#include \fP .PP Inherits \fBstd::pair< _Iterator1, _Iterator2 >\fP\&. .SS "Public Types" .in +1c .ti -1c .RI "typedef \fBstd::iterator_traits\fP< _Iterator1 > \fB_TraitsType\fP" .br .ti -1c .RI "typedef _TraitsType::difference_type \fBdifference_type\fP" .br .ti -1c .RI "typedef _Iterator1 \fBfirst_type\fP" .br .RI "The type of the \fRfirst\fP member\&. " .ti -1c .RI "typedef _IteratorCategory \fBiterator_category\fP" .br .ti -1c .RI "typedef \fB_IteratorPair\fP * \fBpointer\fP" .br .ti -1c .RI "typedef \fB_IteratorPair\fP & \fBreference\fP" .br .ti -1c .RI "typedef _Iterator2 \fBsecond_type\fP" .br .RI "The type of the \fRsecond\fP member\&. " .ti -1c .RI "typedef void \fBvalue_type\fP" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "\fB_IteratorPair\fP (const _Iterator1 &__first, const _Iterator2 &__second)" .br .ti -1c .RI "\fBoperator _Iterator2\fP () const" .br .ti -1c .RI "\fB_IteratorPair\fP \fBoperator+\fP (difference_type __delta) const" .br .ti -1c .RI "\fB_IteratorPair\fP & \fBoperator++\fP ()" .br .ti -1c .RI "const \fB_IteratorPair\fP \fBoperator++\fP (int)" .br .ti -1c .RI "difference_type \fBoperator\-\fP (const \fB_IteratorPair\fP &__other) const" .br .ti -1c .RI "\fB_IteratorPair\fP & \fBoperator\-\-\fP ()" .br .ti -1c .RI "const \fB_IteratorPair\fP \fBoperator\-\-\fP (int)" .br .ti -1c .RI "\fB_IteratorPair\fP & \fBoperator=\fP (const \fB_IteratorPair\fP &__other)" .br .ti -1c .RI "constexpr void \fBswap\fP (\fBpair\fP &__p) noexcept(__and_< __is_nothrow_swappable< _Iterator1 >, __is_nothrow_swappable< _Iterator2 > >::value)" .br .RI "Swap the first members and then the second members\&. " .in -1c .SS "Public Attributes" .in +1c .ti -1c .RI "_Iterator1 \fBfirst\fP" .br .RI "The first member\&. " .ti -1c .RI "_Iterator2 \fBsecond\fP" .br .RI "The second member\&. " .in -1c .SS "Related Symbols" (Note that these are not member symbols\&.) .PP .RI "\fB\fP" .br .in +1c .in +1c .ti -1c .RI "constexpr enable_if< __and_< __is_swappable< _Iterator1 >, __is_swappable< _Iterator2 > >::value >::type \fBswap\fP (\fBpair\fP< _Iterator1, _Iterator2 > &__x, \fBpair\fP< _Iterator1, _Iterator2 > &__y) noexcept(noexcept(__x\&.swap(__y)))" .br .ti -1c .RI "constexpr bool \fBoperator==\fP (const \fBpair\fP< _Iterator1, _Iterator2 > &__x, const \fBpair\fP< _Iterator1, _Iterator2 > &__y)" .br .RI "Two pairs of the same type are equal iff their members are equal\&. " .ti -1c .RI "constexpr bool \fBoperator<\fP (const \fBpair\fP< _Iterator1, _Iterator2 > &__x, const \fBpair\fP< _Iterator1, _Iterator2 > &__y)" .br .ti -1c .RI "constexpr bool \fBoperator!=\fP (const \fBpair\fP< _Iterator1, _Iterator2 > &__x, const \fBpair\fP< _Iterator1, _Iterator2 > &__y)" .br .RI "Uses \fRoperator==\fP to find the result\&. " .ti -1c .RI "constexpr bool \fBoperator>\fP (const \fBpair\fP< _Iterator1, _Iterator2 > &__x, const \fBpair\fP< _Iterator1, _Iterator2 > &__y)" .br .RI "Uses \fRoperator<\fP to find the result\&. " .ti -1c .RI "constexpr bool \fBoperator<=\fP (const \fBpair\fP< _Iterator1, _Iterator2 > &__x, const \fBpair\fP< _Iterator1, _Iterator2 > &__y)" .br .RI "Uses \fRoperator<\fP to find the result\&. " .ti -1c .RI "constexpr bool \fBoperator>=\fP (const \fBpair\fP< _Iterator1, _Iterator2 > &__x, const \fBpair\fP< _Iterator1, _Iterator2 > &__y)" .br .RI "Uses \fRoperator<\fP to find the result\&. " .in -1c .in -1c .SH "Detailed Description" .PP .SS "template .br class __gnu_parallel::_IteratorPair< _Iterator1, _Iterator2, _IteratorCategory >"A pair of iterators\&. The usual iterator operations are applied to both child iterators\&. .SH "Member Typedef Documentation" .PP .SS "_Iterator1 \fBstd::pair\fP< _Iterator1, _Iterator2 >::first_type\fR [inherited]\fP" .PP The type of the \fRfirst\fP member\&. .SS "_Iterator2 \fBstd::pair\fP< _Iterator1, _Iterator2 >::second_type\fR [inherited]\fP" .PP The type of the \fRsecond\fP member\&. .SH "Member Function Documentation" .PP .SS "void \fBstd::pair\fP< _Iterator1, _Iterator2 >::swap (\fBpair\fP< _Iterator1, _Iterator2 > & __p)\fR [inline]\fP, \fR [constexpr]\fP, \fR [noexcept]\fP, \fR [inherited]\fP" .PP Swap the first members and then the second members\&. .SH "Friends And Related Symbol Documentation" .PP .SS "bool operator!= (const \fBpair\fP< _Iterator1, _Iterator2 > & __x, const \fBpair\fP< _Iterator1, _Iterator2 > & __y)\fR [related]\fP" .PP Uses \fRoperator==\fP to find the result\&. .SS "bool operator< (const \fBpair\fP< _Iterator1, _Iterator2 > & __x, const \fBpair\fP< _Iterator1, _Iterator2 > & __y)\fR [related]\fP" Defines a lexicographical order for pairs\&. .PP For two pairs of the same type, \fRP\fP is ordered before \fRQ\fP if \fRP\&.first\fP is less than \fRQ\&.first\fP, or if \fRP\&.first\fP and \fRQ\&.first\fP are equivalent (neither is less than the other) and \fRP\&.second\fP is less than \fRQ\&.second\fP\&. .SS "bool operator<= (const \fBpair\fP< _Iterator1, _Iterator2 > & __x, const \fBpair\fP< _Iterator1, _Iterator2 > & __y)\fR [related]\fP" .PP Uses \fRoperator<\fP to find the result\&. .SS "bool operator== (const \fBpair\fP< _Iterator1, _Iterator2 > & __x, const \fBpair\fP< _Iterator1, _Iterator2 > & __y)\fR [related]\fP" .PP Two pairs of the same type are equal iff their members are equal\&. .SS "bool operator> (const \fBpair\fP< _Iterator1, _Iterator2 > & __x, const \fBpair\fP< _Iterator1, _Iterator2 > & __y)\fR [related]\fP" .PP Uses \fRoperator<\fP to find the result\&. .SS "bool operator>= (const \fBpair\fP< _Iterator1, _Iterator2 > & __x, const \fBpair\fP< _Iterator1, _Iterator2 > & __y)\fR [related]\fP" .PP Uses \fRoperator<\fP to find the result\&. .SS "enable_if< __and_< __is_swappable< _Iterator1 >, __is_swappable< _Iterator2 > >::value >::type swap (\fBpair\fP< _Iterator1, _Iterator2 > & __x, \fBpair\fP< _Iterator1, _Iterator2 > & __y)\fR [related]\fP" Swap overload for pairs\&. Calls std::pair::swap()\&. .PP \fBNote\fP .RS 4 This std::swap overload is not declared in C++03 mode, which has performance implications, e\&.g\&. see https://gcc.gnu.org/PR38466 .RE .PP .SH "Member Data Documentation" .PP .SS "_Iterator1 \fBstd::pair\fP< _Iterator1, _Iterator2 >::first\fR [inherited]\fP" .PP The first member\&. .SS "_Iterator2 \fBstd::pair\fP< _Iterator1, _Iterator2 >::second\fR [inherited]\fP" .PP The second member\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.