This class is NOT RECOMMENDED anymore. We recommend that you use CGAL::cpp0x::tuple or CGAL::cpp0x::array instead for new uses.
#include <CGAL/utility.h>
|
|
|
|
|
|
|
|
|
| first element. Please access it using get<0>(). |
|
| second element. Please access it using get<1>(). |
|
| third element. Please access it using get<2>(). |
| |||
introduces a triple using the default
constructor of the three elements.
| |||
| |||
constructs a triple such
that first is constructed from x, second is
constructed from y, and third is constructed from
z.
| |||
| |||
| |||
constructs a triple such that first is constructed
from u, second is constructed from v, and
third is constructed from w.
|
| ||
|
| Gives access to first, second or third whenever i is 0, 1 or 2, via a, potentially const, reference. Note: T stands for T1, T2 or T3 depending on i. |
| ||
|
| The comparison operator. It uses lexicographic comparison: the return value is true if the first element of x is less than the first element of y, and false if the first element of y is less than the first element of x. If neither of these is the case, then it returns true if the second element of x is less than the second element of y, and false if the second element of y is less than the second element of x. If neither of these is the case, then it returns the result of comparing the third elements of x and y. This operator may only be used if T1, T2 and T3 define the comparison operator. |
| ||
|
| The equality operator. The return value is true if and only the first elements of x and y are equal, the second elements of x and y are equal, and the third elements of x and y are equal. This operator may only be used if T1, T2 and T3 define the equality operator. |
| ||
|
| Equivalent to Triple<T1, T2, T3>(x, y, z). |
| ||
|
| Equivalent to Triple<T1, T2, T3>(x, y, z). |