CGAL 5.6 - CGAL and Boost Property Maps
CGAL::Dereference_property_map< T, Iter > Struct Template Reference

#include <CGAL/property_map.h>

Inherits from

put_get_helper< std::iterator_traits< Iter >::reference, Dereference_property_map< T, Iter > >.

Definition

template<typename T, typename Iter = T*>
struct CGAL::Dereference_property_map< T, Iter >

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

Is Model Of:
LvaluePropertyMap

Public Types

typedef Iter key_type
 typedef to 'T*'
 
typedef std::remove_const_t< T > value_type
 typedef to 'T'
 
typedef std::iterator_traits< Iter >::reference reference
 typedef to 'T&'
 
typedef boost::lvalue_property_map_tag category
 boost::lvalue_property_map_tag
 

Public Member Functions

template<class Iter_ >
reference operator[] (const Iter_ &it) const
 Access a property map element. More...
 

Related Functions

(Note that these are not member functions.)

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

Member Function Documentation

◆ operator[]()

template<typename T , typename Iter = T*>
template<class Iter_ >
reference CGAL::Dereference_property_map< T, Iter >::operator[] ( const Iter_ &  it) const

Access a property map element.

Template Parameters
IterType convertible to key_type.