std::triple< _T1, _T2, _T3 > Struct Template Reference

triple holds three objects of arbitrary type. More...

#include <stlp_triple.h>

List of all members.

Public Types

typedef _T1 first_type
 type of first entry
typedef _T2 second_type
 type of second entry
typedef _T3 third_type
 type of third entry

Public Member Functions

 triple ()
 triple (const _T1 &__a, const _T2 &__b, const _T3 &__c)
template<class _U1 , class _U2 , class _U3 >
 triple (const triple< _U1, _U2, _U3 > &__t)

Public Attributes

_T1 first
 first entry
_T2 second
 second entry
_T3 third
 third entry


Detailed Description

template<class _T1, class _T2, class _T3>
struct std::triple< _T1, _T2, _T3 >

This class is used to hold three objects of arbitrary types. It is a slight generalization of std::pair.

Definition at line 42 of file stlp_triple.h.


Member Typedef Documentation

template<class _T1, class _T2, class _T3>
typedef _T1 std::triple< _T1, _T2, _T3 >::first_type

first_type is the first bound type

Definition at line 44 of file stlp_triple.h.

template<class _T1, class _T2, class _T3>
typedef _T2 std::triple< _T1, _T2, _T3 >::second_type

second_type is the second bound type

Definition at line 46 of file stlp_triple.h.

template<class _T1, class _T2, class _T3>
typedef _T3 std::triple< _T1, _T2, _T3 >::third_type

third_type is the third bound type

Definition at line 48 of file stlp_triple.h.


Constructor & Destructor Documentation

template<class _T1, class _T2, class _T3>
std::triple< _T1, _T2, _T3 >::triple (  )  [inline]

Definition at line 64 of file stlp_triple.h.

template<class _T1, class _T2, class _T3>
std::triple< _T1, _T2, _T3 >::triple ( const _T1 &  __a,
const _T2 &  __b,
const _T3 &  __c 
) [inline]

Three objects may be passed to a triple constructor to be copied.

Definition at line 69 of file stlp_triple.h.

template<class _T1, class _T2, class _T3>
template<class _U1 , class _U2 , class _U3 >
std::triple< _T1, _T2, _T3 >::triple ( const triple< _U1, _U2, _U3 > &  __t  )  [inline]

There is also a templated copy constructor for the triple class itself.

Definition at line 76 of file stlp_triple.h.


Member Data Documentation

template<class _T1, class _T2, class _T3>
_T1 std::triple< _T1, _T2, _T3 >::first

first is a copy of the first object

Definition at line 51 of file stlp_triple.h.

template<class _T1, class _T2, class _T3>
_T2 std::triple< _T1, _T2, _T3 >::second

second is a copy of the second object

Definition at line 53 of file stlp_triple.h.

template<class _T1, class _T2, class _T3>
_T3 std::triple< _T1, _T2, _T3 >::third

third is a copy of the second object

Definition at line 55 of file stlp_triple.h.


The documentation for this struct was generated from the following file:

Generated on Tue Feb 9 14:50:07 2010 for COCONUT API by  doxygen 1.5.8