.TH "std::pair< _T1, _T2 >" 3cxx "Sun Jan 6 2013" "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 "void __p \fBfirst\fP && \fBnoexcept\fP (swap(\fBsecond\fP, __p\&.second)))" .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_< \fBis_nothrow_move_assignable\fP< _T1 >" .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" .br .in -1c .SS "Public Attributes" .in +1c .ti -1c .RI "_T1 \fBfirst\fP" .br .ti -1c .RI "\fBpair\fP .br \fBis_nothrow_move_assignable\fP .br < _T2 >::value \fBfirst\fP" .br .ti -1c .RI "_T2 \fBsecond\fP" .br .ti -1c .RI "\fBsecond\fP" .br .ti -1c .RI "return * \fBthis\fP" .br .in -1c .SH "Detailed Description" .PP .SS "templatestruct std::pair< _T1, _T2 >" Struct holding two objects of arbitrary type\&. .PP Definition at line 88 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 91 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 100 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 104 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 116 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 93 of file stl_pair\&.h\&. .PP Referenced by std::_Temporary_buffer< _ForwardIterator, _Tp >::_Temporary_buffer(), std::set< _StateIdT >::insert(), std::operator<(), and std::operator==()\&. .SS "template _T2 \fBstd::pair\fP< _T1, _T2 >::second" .PP \fCfirst\fP is a copy of the first object .PP Definition at line 94 of file stl_pair\&.h\&. .PP Referenced by std::_Temporary_buffer< _ForwardIterator, _Tp >::_Temporary_buffer(), std::set< _StateIdT >::insert(), and std::operator==()\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.