CGAL 5.1 - STL Extensions for CGAL
CGAL::Twotuple< T > Class Template Reference

#include <CGAL/Twotuple.h>

Definition

template<typename T>
class CGAL::Twotuple< T >

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 std::array instead.
Template Parameters
Tmust be Assignable.

Types

typedef T value_type
 

Variables

e0
 first element More...
 
e1
 second element More...
 

Creation

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

Member Typedef Documentation

◆ value_type

template<typename T >
typedef T CGAL::Twotuple< T >::value_type

Constructor & Destructor Documentation

◆ Twotuple() [1/2]

template<typename T >
CGAL::Twotuple< T >::Twotuple ( )

introduces a Twotuple using the default constructor of the elements.

◆ Twotuple() [2/2]

template<typename T >
CGAL::Twotuple< T >::Twotuple ( x,
y 
)

constructs a Twotuple such that e0 is constructed from x and e1 is constructed from y.

Member Data Documentation

◆ e0

template<typename T >
T CGAL::Twotuple< T >::e0

first element

◆ e1

template<typename T >
T CGAL::Twotuple< T >::e1

second element