.TH "std::pair< _T1, _T2 >" 3cxx "Fri Dec 2 2016" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::pair< _T1, _T2 > \- .SH SYNOPSIS .br .PP .SS "Public Types" .in +1c .ti -1c .RI "typedef _T1 \fBfirst_type\fP" .br .ti -1c .RI "typedef _T2 \fBsecond_type\fP" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "constexpr \fBpair\fP ()" .br .ti -1c .RI "constexpr \fBpair\fP (const _T1 &__a, const _T2 &__b)" .br .ti -1c .RI "template, is_convertible>::value>::type> constexpr \fBpair\fP (const \fBpair\fP< _U1, _U2 > &__p)" .br .ti -1c .RI "constexpr \fBpair\fP (const \fBpair\fP &)=default" .br .ti -1c .RI "constexpr \fBpair\fP (\fBpair\fP &&)=default" .br .ti -1c .RI "template::value>::type> constexpr \fBpair\fP (_U1 &&__x, const _T2 &__y)" .br .ti -1c .RI "template::value>::type> constexpr \fBpair\fP (const _T1 &__x, _U2 &&__y)" .br .ti -1c .RI "template, is_convertible<_U2, _T2>>::value>::type> constexpr \fBpair\fP (_U1 &&__x, _U2 &&__y)" .br .ti -1c .RI "template, is_convertible<_U2, _T2>>::value>::type> constexpr \fBpair\fP (\fBpair\fP< _U1, _U2 > &&__p)" .br .ti -1c .RI "template \fBpair\fP (\fBpiecewise_construct_t\fP, \fBtuple\fP< _Args1\&.\&.\&. >, \fBtuple\fP< _Args2\&.\&.\&. >)" .br .ti -1c .RI "\fBpair\fP & \fBoperator=\fP (const \fBpair\fP &__p)" .br .ti -1c .RI "\fBpair\fP & \fBoperator=\fP (\fBpair\fP &&__p) noexcept(__and_< is_nothrow_move_assignable< _T1 >, is_nothrow_move_assignable< _T2 >>::value)" .br .ti -1c .RI "template \fBpair\fP & \fBoperator=\fP (const \fBpair\fP< _U1, _U2 > &__p)" .br .ti -1c .RI "template \fBpair\fP & \fBoperator=\fP (\fBpair\fP< _U1, _U2 > &&__p)" .br .ti -1c .RI "void \fBswap\fP (\fBpair\fP &__p) noexcept(noexcept(swap(\fBfirst\fP, __p\&.first)) &&noexcept(swap(\fBsecond\fP, __p\&.second)))" .br .in -1c .SS "Public Attributes" .in +1c .ti -1c .RI "_T1 \fBfirst\fP" .br .ti -1c .RI "_T2 \fBsecond\fP" .br .in -1c .SH "Detailed Description" .PP .SS "template .br struct std::pair< _T1, _T2 >" Struct holding two objects of arbitrary type\&. .PP \fBTemplate Parameters:\fP .RS 4 \fI_T1\fP Type of first object\&. .br \fI_T2\fP Type of second object\&. .RE .PP .PP Definition at line 96 of file stl_pair\&.h\&. .SH "Member Typedef Documentation" .PP .SS "template typedef _T2 \fBstd::pair\fP< _T1, _T2 >::\fBsecond_type\fP" .PP \fCfirst_type\fP is the first bound type .PP Definition at line 99 of file stl_pair\&.h\&. .SH "Constructor & Destructor Documentation" .PP .SS "template constexpr \fBstd::pair\fP< _T1, _T2 >::\fBpair\fP ()\fC [inline]\fP" .PP \fCsecond\fP is a copy of the second object The default constructor creates \fCfirst\fP and \fCsecond\fP using their respective default constructors\&. .PP Definition at line 108 of file stl_pair\&.h\&. .SS "template constexpr \fBstd::pair\fP< _T1, _T2 >::\fBpair\fP (const _T1 & __a, const _T2 & __b)\fC [inline]\fP" Two objects may be passed to a \fCpair\fP constructor to be copied\&. .PP Definition at line 112 of file stl_pair\&.h\&. .SS "template template, is_convertible>::value>::type> constexpr \fBstd::pair\fP< _T1, _T2 >::\fBpair\fP (const \fBpair\fP< _U1, _U2 > & __p)\fC [inline]\fP" There is also a templated copy ctor for the \fCpair\fP class itself\&. .PP Definition at line 124 of file stl_pair\&.h\&. .SH "Member Data Documentation" .PP .SS "template _T1 \fBstd::pair\fP< _T1, _T2 >::first" .PP \fCsecond_type\fP is the second bound type .PP Definition at line 101 of file stl_pair\&.h\&. .PP Referenced by __gnu_parallel::__qsb_conquer(), std::set< _Key, _Compare, _Alloc >::insert(), std::operator<(), std::operator==(), std::pair< _BiIter, _BiIter >::pair(), and std::regex_replace()\&. .SS "template _T2 \fBstd::pair\fP< _T1, _T2 >::second" .PP \fCfirst\fP is a copy of the first object .PP Definition at line 102 of file stl_pair\&.h\&. .PP Referenced by __gnu_parallel::__qsb_conquer(), std::set< _Key, _Compare, _Alloc >::insert(), std::operator==(), std::pair< _BiIter, _BiIter >::pair(), and std::regex_replace()\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.