\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)
CGAL 4.12 - CGAL and Boost Property Maps
CGAL::Nth_of_tuple_property_map< N, Tuple > Struct Template Reference

#include <CGAL/property_map.h>


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

Template Parameters
NIndex of the item to access.
TupleInstance of boost::tuple or std::tuple.
Is Model Of:

Public Types

typedef Tuple key_type
 typedef to Tuple
typedef unspecified_type value_type
 typedef to the N-th type of the tuple
typedef const value_typereference
 typedef to value_type&
typedef boost::lvalue_property_map_tag category
typedef Nth_of_tuple_property_map< N, Tuple > Self

Public Member Functions

value_typeoperator[] (key_type &tuple) const
 Access a property map element. More...

Related Functions

(Note that these are not member functions.)

template<int N, class Tuple >
Nth_of_tuple_property_map< N, Tuple > make_nth_of_tuple_property_map (Tuple)
 Free function to create a Nth_of_tuple_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<int N, typename Tuple >
value_type& CGAL::Nth_of_tuple_property_map< N, Tuple >::operator[] ( key_type tuple) const

Access a property map element.

tuplea key whose Nth item is accessed