CGAL::Dereference_property_map<T>

Definition

Property map that converts a T* pointer (or in general an iterator over T elements) to the T object.

#include <CGAL/property_map.h>

Parameters

template<typename T>
struct Dereference_property_map;

Inherits From

boost::put_get_helper< T& , Dereference_property_map<T> >

Is Model for the Concepts

Model of boost::LvaluePropertyMap concept.

Types

Dereference_property_map<T>::key_type
typedef to T*

Dereference_property_map<T>::value_type
typedef to T

Dereference_property_map<T>::reference
typedef to T&

Dereference_property_map<T>::category
boost::lvalue_property_map_tag

Creation

Dereference_property_map<T> pmap;
Constructor.

Operations

template<class Iter>
reference pmap [ Iter it ] Access a property map element.
Template Parameters: 
Iter: Type convertible to key_type.

Related Functions

Dereference_property_map<typename value_type_traits<Iter>::type>
make_dereference_property_map ( Iter)
Free function to create a Dereference_property_map property map.

Example

See property_map.cpp example.