Definition
An instance p of type two_tuple<A,B> is a two-tuple (a, b) of variables of types A, and B, respectively.
Related types are two_tuple, three_tuple, and four_tuple.
#include < LEDA/core/tuple.h >
Types
two_tuple<A,B>::first_type | the type of the first component. |
two_tuple<A,B>::second_type | the type of the second component. |
Creation
two_tuple<A,B> | p | creates an instance p of type two_tuple<A,B>. All components are initialized to their default value. |
two_tuple<A,B> | p(const A& u, const B& v) | creates an instance p of type two_tuple<A,B> and initializes it with the value (u, v). |
Operations
Implementation
The obvious implementation is used.