std::pair< _T1, _T2 > Struct Template Reference

pair holds two objects of arbitrary type. More...

#include <stl_pair.h>

List of all members.

Public Types

typedef _T1 first_type
 first_type is the first bound type

typedef _T2 second_type
 second_type is the second bound type


Public Member Functions

 pair ()
 pair (const _T1 &__a, const _T2 &__b)
template<class _U1, class _U2>  pair (const pair< _U1, _U2 > &__p)

Public Attributes

_T1 first
 first is a copy of the first object

_T2 second
 second is a copy of the second object


Detailed Description

template<class _T1, class _T2>
struct std::pair< _T1, _T2 >

pair holds two objects of arbitrary type.

Definition at line 68 of file stl_pair.h.


Member Typedef Documentation

template<class _T1, class _T2>
typedef _T1 std::pair< _T1, _T2 >::first_type
 

first_type is the first bound type

Definition at line 70 of file stl_pair.h.

template<class _T1, class _T2>
typedef _T2 std::pair< _T1, _T2 >::second_type
 

second_type is the second bound type

Definition at line 71 of file stl_pair.h.


Constructor & Destructor Documentation

template<class _T1, class _T2>
std::pair< _T1, _T2 >::pair  )  [inline]
 

The default constructor creates first and second using their respective default constructors.

Definition at line 80 of file stl_pair.h.

template<class _T1, class _T2>
std::pair< _T1, _T2 >::pair const _T1 &  __a,
const _T2 &  __b
[inline]
 

Two objects may be passed to a pair constructor to be copied.

Definition at line 84 of file stl_pair.h.

template<class _T1, class _T2>
template<class _U1, class _U2>
std::pair< _T1, _T2 >::pair const pair< _U1, _U2 > &  __p  )  [inline]
 

There is also a templated copy ctor for the pair class itself.

Definition at line 89 of file stl_pair.h.


Member Data Documentation

template<class _T1, class _T2>
_T1 std::pair< _T1, _T2 >::first
 

first is a copy of the first object

Definition at line 73 of file stl_pair.h.

Referenced by __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::_M_can_advance(), __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::_M_valid_range(), std::_Temporary_buffer< _ForwardIterator, _Tp >::_Temporary_buffer(), __gnu_debug_def::set< _Key, _Compare, _Allocator >::equal_range(), __gnu_debug_def::multiset< _Key, _Compare, _Allocator >::equal_range(), __gnu_debug_def::multimap< _Key, _Tp, _Compare, _Allocator >::equal_range(), __gnu_debug_def::map< _Key, _Tp, _Compare, _Allocator >::equal_range(), __gnu_debug_def::hash_set< _Value, _HashFcn, _EqualKey, _Alloc >::equal_range(), __gnu_debug_def::hash_multiset< _Value, _HashFcn, _EqualKey, _Alloc >::equal_range(), __gnu_debug_def::hash_multimap< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >::equal_range(), __gnu_debug_def::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >::equal_range(), __gnu_debug_def::multiset< _Key, _Compare, _Allocator >::erase(), __gnu_debug_def::multimap< _Key, _Tp, _Compare, _Allocator >::erase(), __gnu_debug_def::hash_multiset< _Value, _HashFcn, _EqualKey, _Alloc >::erase(), __gnu_debug_def::hash_multimap< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >::erase(), __gnu_debug_def::set< _Key, _Compare, _Allocator >::insert(), __gnu_debug_def::map< _Key, _Tp, _Compare, _Allocator >::insert(), __gnu_debug_def::hash_set< _Value, _HashFcn, _EqualKey, _Alloc >::insert(), __gnu_cxx::hash_set< _Value, _HashFcn, _EqualKey, _Alloc >::insert(), __gnu_debug_def::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >::insert(), __gnu_debug_def::hash_set< _Value, _HashFcn, _EqualKey, _Alloc >::insert_noresize(), __gnu_cxx::hash_set< _Value, _HashFcn, _EqualKey, _Alloc >::insert_noresize(), __gnu_debug_def::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >::insert_noresize(), and std::operator==().

template<class _T1, class _T2>
_T2 std::pair< _T1, _T2 >::second
 

second is a copy of the second object

Definition at line 74 of file stl_pair.h.

Referenced by __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::_M_can_advance(), __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::_M_valid_range(), std::_Temporary_buffer< _ForwardIterator, _Tp >::_Temporary_buffer(), __gnu_debug_def::set< _Key, _Compare, _Allocator >::equal_range(), __gnu_debug_def::multiset< _Key, _Compare, _Allocator >::equal_range(), __gnu_debug_def::multimap< _Key, _Tp, _Compare, _Allocator >::equal_range(), __gnu_debug_def::map< _Key, _Tp, _Compare, _Allocator >::equal_range(), __gnu_debug_def::hash_set< _Value, _HashFcn, _EqualKey, _Alloc >::equal_range(), __gnu_debug_def::hash_multiset< _Value, _HashFcn, _EqualKey, _Alloc >::equal_range(), __gnu_debug_def::hash_multimap< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >::equal_range(), __gnu_debug_def::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >::equal_range(), __gnu_debug_def::multiset< _Key, _Compare, _Allocator >::erase(), __gnu_debug_def::multimap< _Key, _Tp, _Compare, _Allocator >::erase(), __gnu_debug_def::hash_multiset< _Value, _HashFcn, _EqualKey, _Alloc >::erase(), __gnu_debug_def::hash_multimap< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >::erase(), __gnu_debug_def::set< _Key, _Compare, _Allocator >::insert(), __gnu_debug_def::map< _Key, _Tp, _Compare, _Allocator >::insert(), __gnu_debug_def::hash_set< _Value, _HashFcn, _EqualKey, _Alloc >::insert(), __gnu_cxx::hash_set< _Value, _HashFcn, _EqualKey, _Alloc >::insert(), __gnu_debug_def::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >::insert(), __gnu_debug_def::hash_set< _Value, _HashFcn, _EqualKey, _Alloc >::insert_noresize(), __gnu_cxx::hash_set< _Value, _HashFcn, _EqualKey, _Alloc >::insert_noresize(), __gnu_debug_def::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >::insert_noresize(), and std::operator==().


The documentation for this struct was generated from the following file:
Generated on Tue Jan 30 17:32:15 2007 for GNU C++ STL by doxygen 1.3.6