The ChainCon Software (Release 0.03)
Public Member Functions | Public Attributes | List of all members
tPair< LeftT, RightT > Class Template Reference

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

#include <pair.h>

Public Member Functions

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

Public Attributes

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

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

◆ tPair() [1/2]

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

The default constructor of a pair.

Definition at line 52 of file pair.h.

◆ tPair() [2/2]

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

◆ left

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

The first element of the pair.

Definition at line 59 of file pair.h.

Referenced by hashkey1(), hashkey2(), and operator==().

◆ right

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

The second element of the pair.

Definition at line 62 of file pair.h.

Referenced by hashkey1(), hashkey2(), and operator==().


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