CGAL 6.2 - STL Extensions for CGAL

Loading...
Searching...
No Matches
List of all members
CGAL::Const_oneset_iterator< T > Class Template Reference
Reference Manual » Iterators and Iterator/Circulator Adaptors

`#include <CGAL/iterator.h>`

## Definition

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

The class `Const_oneset_iterator` defines a `RandomAccessIterator` that always refers to a copy of a specific object of type `T`.

Is model of
  `RandomAccessIterator`

See also
  `CGAL::Emptyset_iterator`
  `CGAL::Oneset_iterator`

## Creation
| Const_oneset_iterator (T &t)
| creates an iterator that always refers to some copy of `t`.

## Constructor & Destructor Documentation

## ◆ Const_oneset_iterator()

template<typename T >

CGAL::Const_oneset_iterator< T >::Const_oneset_iterator | ( | T & | t | ) |

creates an iterator that always refers to some copy of `t`.

The copy is constructed by invoking `T`'s copy constructor and remains constant during the lifetime of the iterator.