\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)
CGAL 4.9 - STL Extensions for CGAL
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
CGAL::Twotuple< T > Class Template Reference

#include <CGAL/Twotuple.h>

Definition

The Twotuple class stores a homogeneous (same type) pair of objects of type T.

A Twotuple 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.

Deprecated:
This class is deprecated, and will be removed in some future CGAL release. Please use CGAL::cpp11::array instead.
Template Parameters
Tmust be Assignable.

Types

typedef T value_type
 

Variables

e0
 first element
 
e1
 second element
 

Creation

 Twotuple ()
 introduces a Twotuple using the default constructor of the elements.
 
 Twotuple (T x, T y)
 constructs a Twotuple such that e0 is constructed from x and e1 is constructed from y.