Namespace List   Compound List   File List   Namespace Members   Compound Members  

std::pair Struct Reference

a template for heterogeneous pairs of values. It also provides a matching template function to simplify their construction. More...

List of all members.

Public Members

typedef T1 first_type
typedef T2 second_type
 pair ()
 pair (const T1 &x,const T2 &y)
template<class U, class V>  pair<U, V> (const pair<U,V> &p)
T1 first
T2 second


Detailed Description

template<class T1, class T2> struct std::pair

a template for heterogeneous pairs of values. It also provides a matching template function to simplify their construction.


Member Typedef Documentation

template<class T1, class T2>
typedef T1 std::pair<T1, T2>::first_type

template<class T1, class T2>
typedef T2 std::pair<T1, T2>::second_type


Member Function Documentation

template<class T1, class T2>
std::pair<T1, T2>::pair<T1, T2> ()

: first(T1()), second(T2())
		{
		}

template<class T1, class T2>
std::pair<T1, T2>::pair<T1, T2> (const T1 & x, const T2 & y)

: first(x), second(y)
		{
		}

template<class T1, class T2>
template<class U, class V>
std::pair<T1, T2>::pair<T1, T2> (const pair<U,V>& p)

: first(p.first), second(p.second)
		{
		}

Member Data Documentation

template<class T1, class T2>
T1 std::pair<T1, T2>::first

template<class T1, class T2>
T2 std::pair<T1, T2>::second


The documentation for this structwas generated from the following file:
Generated at Tue Sep 14 07:34:43 1999 for FREE_C++_STANDARD_LIBRARY by doxygen  written by Dimitri van Heesch, © 1997-1999