.TH "std::pair< _T1, _T2 >" 3cxx "Tue Nov 27 2012" "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 constexpr \fBpair\fP (const \fBpair\fP< _U1, _U2 > &__p)" .br .ti -1c .RI "constexpr \fBpair\fP (const \fBpair\fP &)" .br .ti -1c .RI "template::value>::type> \fBpair\fP (_U1 &&__x, const _T2 &__y)" .br .ti -1c .RI "template::value>::type> \fBpair\fP (const _T1 &__x, _U2 &&__y)" .br .ti -1c .RI "template::value && std::is_convertible<_U2, _T2>::value>::type> \fBpair\fP (_U1 &&__x, _U2 &&__y)" .br .ti -1c .RI "template \fBpair\fP (\fBpair\fP< _U1, _U2 > &&__p)" .br .ti -1c .RI "template \fBpair\fP (\fBpiecewise_construct_t\fP, \fBtuple\fP< _Args1\&.\&.\&.> __first, \fBtuple\fP< _Args2\&.\&.\&.> __second)" .br .ti -1c .RI "\fBpair\fP & \fBoperator=\fP (const \fBpair\fP &__p)" .br .ti -1c .RI "\fBpair\fP & \fBoperator=\fP (\fBpair\fP &&__p)" .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)" .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 "templatestruct std::pair< _T1, _T2 >" Struct holding two objects of arbitrary type\&. .PP Definition at line 87 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 90 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 99 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 103 of file stl_pair\&.h\&. .SS "template template 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 108 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 92 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 93 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\&.