CGAL::Nth_of_tuple_property_map<N, Tuple>

Definition

Property map that accesses the Nth item of a boost::tuple.

#include <CGAL/property_map.h>

Parameters

template<int N, typename Tuple>
struct Nth_of_tuple_property_map;

Parameters


N: Index of the item to access. Tuple: Instance of boost::tuple.

Inherits From

boost::put_get_helper< boost::tuples::element<N, Tuple>::type& , Nth_of_tuple_property_map<N, Tuple> >

Is Model for the Concepts

Model of boost::LvaluePropertyMap concept.

Types

Nth_of_tuple_property_map<N, Tuple>::key_type
typedef to Tuple*

Nth_of_tuple_property_map<N, Tuple>::value_type
typedef to boost::tuples::element<N, Tuple>::type

Nth_of_tuple_property_map<N, Tuple>::reference
typedef to value_type&

Nth_of_tuple_property_map<N, Tuple>::category
boost::lvalue_property_map_tag

Creation

Nth_of_tuple_property_map<N, Tuple> pmap;
Constructor.

Operations

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

Related Functions

Nth_of_tuple_property_map<N, typename value_type_traits<Iter>::type>
make_nth_of_tuple_property_map ( Iter)
Free function to create a Nth_of_tuple_property_map property map.

Example

See property_map.cpp example.