The class Random_access_value_adaptor<IC,T> provides a random access for data structures. It is derived from 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 .
#include <CGAL/Random_access_value_adaptor.h>
Creation and operations see Random_access_adaptor<IC> above, with the exception of:
|
| |
returns a reference to
the -th item. Precondition: number of items in random_access. |
Inverse_index and Random_access_adaptor.