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 std::tr1::__pair_get< 0 >::__const_get(), std::tr1::__pair_get< 0 >::__get(), _GLIBCXX_STD::multimap< _Key, _Tp, _Compare, _Allocator >::__glibcxx_class_requires2(), _GLIBCXX_STD::map< _Key, _Tp, _Compare, _Allocator >::__glibcxx_class_requires2(), __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(), std::_Rb_tree< _Key, _Val, _KeyOfValue, _Compare, _Alloc >::count(), __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(), std::_Rb_tree< _Key, _Val, _KeyOfValue, _Compare, _Alloc >::erase(), __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(), _GLIBCXX_STD::set< _Key, _Compare, _Allocator >::insert(), __gnu_debug_def::set< _Key, _Compare, _Allocator >::insert(), __gnu_debug_def::map< _Key, _Tp, _Compare, _Allocator >::insert(), std::tr1::hashtable< Key, Value, Allocator, ExtractKey, Equal, H1, H2, H, RehashPolicy, cache_hash_code, constant_iterators, unique_keys >::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(), std::tr1::hashtable< Key, Value, Allocator, ExtractKey, Equal, H1, H2, H, RehashPolicy, cache_hash_code, constant_iterators, unique_keys >::m_insert(), std::tr1::hashtable< Key, Value, Allocator, ExtractKey, Equal, H1, H2, H, RehashPolicy, cache_hash_code, constant_iterators, unique_keys >::m_insert_bucket(), std::operator==(), and order_statistics_key_verifier< Cntnr, Allocator >::verify_imp().

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 std::tr1::__pair_get< 1 >::__const_get(), std::tr1::__pair_get< 1 >::__get(), __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(), std::_Rb_tree< _Key, _Val, _KeyOfValue, _Compare, _Alloc >::count(), __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(), std::_Rb_tree< _Key, _Val, _KeyOfValue, _Compare, _Alloc >::erase(), __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(), _GLIBCXX_STD::set< _Key, _Compare, _Allocator >::insert(), __gnu_debug_def::set< _Key, _Compare, _Allocator >::insert(), __gnu_debug_def::map< _Key, _Tp, _Compare, _Allocator >::insert(), std::tr1::hashtable< Key, Value, Allocator, ExtractKey, Equal, H1, H2, H, RehashPolicy, cache_hash_code, constant_iterators, unique_keys >::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(), std::tr1::hashtable< Key, Value, Allocator, ExtractKey, Equal, H1, H2, H, RehashPolicy, cache_hash_code, constant_iterators, unique_keys >::m_insert(), std::tr1::hashtable< Key, Value, Allocator, ExtractKey, Equal, H1, H2, H, RehashPolicy, cache_hash_code, constant_iterators, unique_keys >::m_insert_bucket(), pb_assoc::cc_hash_max_collision_check_resize_trigger< External_Load_Access, Size_Type >::max_col_checker< Key >::operator()(), std::operator==(), and order_statistics_key_verifier< Cntnr, Allocator >::verify_imp().


The documentation for this struct was generated from the following file:
Generated on Tue Feb 2 16:59:13 2010 for GNU C++ STL by  doxygen 1.4.7