\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)
CGAL 4.12.1 - CGAL and Boost Property Maps
CGAL::Identity_property_map< T > Struct Template Reference

#include <CGAL/property_map.h>


A LvaluePropertyMap property map mapping a key to itself (by reference).

Is Model Of:

Public Types

typedef T key_type
 typedef to T
typedef T value_type
 typedef to T
typedef const T & reference
 typedef to T&
typedef boost::lvalue_property_map_tag category
typedef Identity_property_map< T > Self

Public Member Functions

value_typeoperator[] (key_type &k) const
 Access a property map element. More...

Related Functions

(Note that these are not member functions.)

template<class T >
Identity_property_map< T > make_identity_property_map (T)
 Free function to create a Identity_property_map property map.

Put/get free functions

reference get (const Self &, const key_type &k)
void put (const Self &, key_type &k, const value_type &v)

Member Function Documentation

◆ operator[]()

template<typename T >
value_type& CGAL::Identity_property_map< T >::operator[] ( key_type k) const

Access a property map element.

ka key which is returned as mapped value.