|
Classes |
struct | triple |
| triple holds three objects of arbitrary type. More...
|
Functions |
template<class _T1, class _T2, class _T3> |
bool | operator== (const triple< _T1, _T2, _T3 > &__x, const triple< _T1, _T2, _T3 > &__y) |
| Two triples of the same type are equal iff their members are equal.
|
template<class _T1, class _T2, class _T3> |
bool | operator< (const triple< _T1, _T2, _T3 > &__x, const triple< _T1, _T2, _T3 > &__y) |
| <http://gcc.gnu.org/onlinedocs/libstdc++/20_util/howto.html#triplelt>
|
template<class _T1, class _T2, class _T3> |
bool | operator!= (const triple< _T1, _T2, _T3 > &__x, const triple< _T1, _T2, _T3 > &__y) |
| Uses operator== to find the result.
|
template<class _T1, class _T2, class _T3> |
bool | operator> (const triple< _T1, _T2, _T3 > &__x, const triple< _T1, _T2, _T3 > &__y) |
| Uses operator< to find the result.
|
template<class _T1, class _T2, class _T3> |
bool | operator<= (const triple< _T1, _T2, _T3 > &__x, const triple< _T1, _T2, _T3 > &__y) |
| Uses operator< to find the result.
|
template<class _T1, class _T2, class _T3> |
bool | operator>= (const triple< _T1, _T2, _T3 > &__x, const triple< _T1, _T2, _T3 > &__y) |
| Uses operator< to find the result.
|
template<class _T1, class _T2, class _T3> |
triple< _T1, _T2, _T3 > | make_triple (const _T1 &__x, const _T2 &__y, const _T3 &__z) |
| A convenience wrapper for creating a triple from three objects.
|
template<class _T1, class _T2, class _T3>
bool utility::operator== |
( |
const triple< _T1, _T2, _T3 > & |
__x, |
|
|
const triple< _T1, _T2, _T3 > & |
__y | |
|
) |
| | [inline] |
template<class _T1, class _T2, class _T3>
triple<_T1, _T2, _T3> utility::make_triple |
( |
const _T1 & |
__x, |
|
|
const _T2 & |
__y, |
|
|
const _T3 & |
__z | |
|
) |
| | [inline] |
A convenience wrapper for creating a triple from three objects.
- Parameters:
-
| x | The first object. |
| y | The second object. |
| z | The third object. |
- Returns:
- A newly-constructed triple<> object of the appropriate type.
The standard requires that the objects be passed by reference-to-const, but LWG issue #181 says they should be passed by const value. We follow the LWG by default.
Definition at line 105 of file triple.h.