Class

CGAL::First_of_pair_property_map<Pair>

Definition

Property map that accesses the first item of a std::pair.

#include <CGAL/property_map.h>

Parameters

template<typename Pair>
struct First_of_pair_property_map;

Parameters


Pair: Instance of std::pair.

Inherits From

boost::put_get_helper< Pair::first_type& , First_of_pair_property_map<Pair> >

Is Model for the Concepts

Model of boost::LvaluePropertyMap concept.

Types

First_of_pair_property_map<Pair>::key_type
typedef to Pair*

First_of_pair_property_map<Pair>::value_type
typedef to Pair::first_type

First_of_pair_property_map<Pair>::reference
typedef to value_type&

First_of_pair_property_map<Pair>::category
boost::lvalue_property_map_tag

Creation

First_of_pair_property_map<Pair> pmap;
Constructor.

Operations

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

Related Functions

First_of_pair_property_map<typename value_type_traits<Iter>::type>
make_first_of_pair_property_map ( Iter)
Free function to create a First_of_pair_property_map property map.

See Also

CGAL::Second_of_pair_property_map<Pair>

Example

See property_map.cpp example.