CGAL 6.1.1 - CGAL and Boost Property Maps

Loading...
Searching...
No Matches
List of all members | Public Types | Public Member Functions | Related Functions
CGAL::Second_of_pair_property_map< Pair > Struct Template Reference
Reference Manual

`#include <CGAL/property_map.h>`

## Definition

template<typename Pair>
struct CGAL::Second_of_pair_property_map< Pair >

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

Template Parameters

  Pair | Instance of `std::pair`.

Is model of
  `LvaluePropertyMap`

See also
  `CGAL::First_of_pair_property_map<Pair>`

Examples
  Point_set_processing_3/read_write_xyz_point_set_example.cpp.

## Public Types
typedef Second_of_pair_property_map< Pair > | Self
typedef Pair | key_type
| typedef to `Pair`
typedef Pair::second_type | value_type
| typedef to `Pair::second_type`
typedef const value_type & | reference
| typedef to `const value_type&`
typedef boost::lvalue_property_map_tag | category
| boost::lvalue_property_map_tag

## Public Member Functions
const value_type & | operator[] (const key_type &pair) const
| Access a property map element.

## Related Functions
(Note that these are not member functions.)
template<class Pair >
Second_of_pair_property_map< Pair > | make_second_of_pair_property_map (Pair)
| Free function to create a Second_of_pair_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 Pair >

const value_type & CGAL::Second_of_pair_property_map< Pair >::operator[] | ( | const key_type & | pair | ) | const

Access a property map element.

Parameters

  pair | a key whose second item is accessed