CGAL 6.1 - CGAL and Boost Property Maps
Loading...
Searching...
No Matches
CGAL::Dereference_property_map< T, Iter > Struct Template Reference

#include <CGAL/property_map.h>

Inherits from

boost::put_get_helper< std::iterator_traits< T * >::reference, Dereference_property_map< T, T * > >.

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.
 

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.