Navigation: Up, Table of Contents, Bibliography, Index, Title Page

A Random Access Value Adaptor for Iterators and Circulators

Definition

The class CGAL_Random_access_value_adaptor<IC,T> provides a random access for data structures. It is derived from CGAL_Random_access_adaptor<IC>. Instead of returning iterators from the operator[] methods, it returns the dereferenced value of the iterator. The iterator or circulator of the data structure are of type IC. Their value type is T.

#include <CGAL/Random_access_value_adaptor.h>

Operations

Creation and operations see CGAL_Random_access_adaptor<IC> above, with the exception of:

T& random_access [ size_type n]
returns a reference to the n-th item.
Precondition: n < number of items in random_access.

See Also

CGAL_Inverse_index and CGAL_Random_access_adaptor.


Navigation: Up, Table of Contents, Bibliography, Index, Title Page
The CGAL Project. 22 January 1999.