CGAL::Second_of_pair_property_map<Pair>

Definition

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

#include <CGAL/property_map.h>

Parameters

template<
typename Pair>
struct Second_of_pair_property_map;

Parameters


Pair: Instance of std::pair.

Inherits From

boost::put_get_helper<Pair::second_type& , Second_of_pair_property_map<Pair> >

Is Model for the Concepts

Model of boost::LvaluePropertyMap concept.

Types

Second_of_pair_property_map<Pair>::key_type
typedef to Pair*

Second_of_pair_property_map<Pair>::value_type
typedef to Pair::second_type

Second_of_pair_property_map<Pair>::reference
typedef to value_type&

Second_of_pair_property_map<Pair>::category
boost::lvalue_property_map_tag

Creation

Second_of_pair_property_map<Pair> pmap;
Constructor.

Operations

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

Related Functions

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

See Also

CGAL::First_of_pair_property_map<Pair>

Example

See property_map.cpp example.