28 #ifndef _CHAINCON_PAIR_H_ 29 #define _CHAINCON_PAIR_H_ 39 #include "chomp/system/config.h" 47 template <
class LeftT,
class RightT>
55 tPair (
const LeftT &leftElement,
const RightT &rightElement):
56 left (leftElement),
right (rightElement) {}
71 template <
class LeftT,
class RightT>
80 template <
class LeftT,
class RightT>
87 template <
class LeftT,
class RightT>
95 #endif // _CHAINCON_PAIR_H_ A pair of elements of two (possibly different) types.
RightT right
The second element of the pair.
tPair()
The default constructor of a pair.
int_t hashkey2(const tPair< LeftT, RightT > &p)
Generates a hashing key no.
tPair(const LeftT &leftElement, const RightT &rightElement)
The constructor of a pair composed of the two given elements.
int_t hashkey1(const tPair< LeftT, RightT > &p)
Generates a hashing key no.
LeftT left
The first element of the pair.
bool operator==(const tPair< LeftT, RightT > &p1, const tPair< LeftT, RightT > &p2)
Operator == for checking whether two pairs are equal.