Public Member Functions | Public Attributes

tPair< LeftT, RightT > Class Template Reference

A pair of elements of two (possibly different) types. More...

#include <pair.h>

List of all members.

Public Member Functions

 tPair ()
 The default constructor of a pair.
 tPair (const LeftT &leftElement, const RightT &rightElement)
 The constructor of a pair composed of the two given elements.

Public Attributes

LeftT left
 The first element of the pair.
RightT right
 The second element of the pair.

Detailed Description

template<class LeftT, class RightT>
class tPair< LeftT, RightT >

A pair of elements of two (possibly different) types.

Definition at line 48 of file pair.h.


Constructor & Destructor Documentation

template<class LeftT, class RightT>
tPair< LeftT, RightT >::tPair (  ) [inline]

The default constructor of a pair.

Definition at line 52 of file pair.h.

template<class LeftT, class RightT>
tPair< LeftT, RightT >::tPair ( const LeftT &  leftElement,
const RightT &  rightElement 
) [inline]

The constructor of a pair composed of the two given elements.

Definition at line 55 of file pair.h.


Member Data Documentation

template<class LeftT, class RightT>
LeftT tPair< LeftT, RightT >::left

The first element of the pair.

Definition at line 59 of file pair.h.

template<class LeftT, class RightT>
RightT tPair< LeftT, RightT >::right

The second element of the pair.

Definition at line 62 of file pair.h.


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