The Triplet data structure. More...
#include "../defs.h"
Go to the source code of this file.
Classes | |
struct | Triplet< T1, T2, T3 > |
Triplet holds three objects of arbitrary type. More... | |
Functions | |
template<typename T1 , typename T2 , typename T3 > | |
bool | operator== (const Triplet< T1, T2, T3 > &x, const Triplet< T1, T2, T3 > &y) |
Two Triplets of the same type are equal iff their members are equal. | |
template<typename T1 , typename T2 , typename T3 > | |
bool | operator< (const Triplet< T1, T2, T3 > &x, const Triplet< T1, T2, T3 > &y) |
Treat the triplet as a composite number. | |
template<typename T1 , typename T2 , typename T3 > | |
bool | operator!= (const Triplet< T1, T2, T3 > &x, const Triplet< T1, T2, T3 > &y) |
Return true if the members are not all equal. | |
template<typename T1 , typename T2 , typename T3 > | |
bool | operator> (const Triplet< T1, T2, T3 > &x, const Triplet< T1, T2, T3 > &y) |
Use operator< to find the result. | |
template<typename T1 , typename T2 , typename T3 > | |
bool | operator<= (const Triplet< T1, T2, T3 > &x, const Triplet< T1, T2, T3 > &y) |
Use operator< to find the result. | |
template<typename T1 , typename T2 , typename T3 > | |
bool | operator>= (const Triplet< T1, T2, T3 > &x, const Triplet< T1, T2, T3 > &y) |
Use operator< to find the result. | |
template<typename T1 , typename T2 , typename T3 > | |
Triplet< T1, T2, T3 > | makeTriplet (const T1 &x, const T2 &y, const T3 &z) |
A convenience wrapper for creating a Triplet from three objects. |
The Triplet data structure.
Triplet<T1,T2,T3> makeTriplet | ( | const T1 & | x, | |
const T2 & | y, | |||
const T3 & | z | |||
) | [inline] |
A convenience wrapper for creating a Triplet from three objects.
x | The first object. | |
y | The second object. | |
z | The third object. |