Definition
The
Twotuple<T> class stores a homogeneous (same type) pair
of objects of type
T. A
Twotuple<T> is much like a container, in that
it "owns" its elements. It is not actually a model of container, though,
because it does not support the standard methods (such as iterators) for
accessing the elements of a container.
#include <CGAL/Twotuple.h>
Requirements
T must be
Assignable.
Types
Variables
T
|
e0;
|
first element
|
T
|
e1;
|
second element
|
Creation
Twotuple<T> t;
|
|
introduces a Twotuple<T> using the default
constructor of the elements.
|
|
Twotuple<T> t ( T x, T y);
|
|
constructs a Twotuple<T> such
that e0 is constructed from x and e1 is
constructed from y.
|