A pair of elements. More...
#include <istream>
#include <ostream>
#include <algorithm>
#include <vector>
#include "chomp/system/config.h"
Go to the source code of this file.
Classes | |
class | tPair< LeftT, RightT > |
A pair of elements of two (possibly different) types. More... | |
Functions | |
template<class LeftT , class RightT > | |
int_t | hashkey1 (const tPair< LeftT, RightT > &p) |
Generates a hashing key no. | |
template<class LeftT , class RightT > | |
int_t | hashkey2 (const tPair< LeftT, RightT > &p) |
Generates a hashing key no. | |
template<class LeftT , class RightT > | |
bool | operator== (const tPair< LeftT, RightT > &p1, const tPair< LeftT, RightT > &p2) |
Operator == for checking whether two pairs are equal. |
A pair of elements.
Definition in file pair.h.
int_t hashkey1 | ( | const tPair< LeftT, RightT > & | p ) | [inline] |
Generates a hashing key no.
1 for a general pair of elements, based on hashing keys of the elements. This key is to be used in a hashed set.
Definition at line 72 of file pair.h.
References hashkey1().
int_t hashkey2 | ( | const tPair< LeftT, RightT > & | p ) | [inline] |
Generates a hashing key no.
2 for a general pair of elements, based on hashing keys of the elements. This key is to be used in a hashed set.
Definition at line 81 of file pair.h.
References hashkey2().