CGAL 6.1.3 - CGAL and Boost Property Maps
Loading...
Searching...
No Matches
CGAL::Property_map_to_unary_function< PropertyMap > Struct Template Reference

#include <CGAL/property_map.h>

Definition

template<class PropertyMap>
struct CGAL::Property_map_to_unary_function< PropertyMap >

Struct that turns a property map into a unary functor with operator()(key k) calling the get function with k.

Public Types

typedef boost::property_traits< PropertyMap >::key_type argument_type
typedef boost::property_traits< PropertyMap >::reference result_type

Public Member Functions

 Property_map_to_unary_function (PropertyMap m=PropertyMap())
template<class KeyType>
decltype(auto) operator() (const KeyType &a) const

Public Attributes

PropertyMap map