\( \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.7 - STL Extensions for CGAL
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
CGAL::Identity< Value > Class Template Reference

#include <CGAL/function_objects.h>

Definition

The class Identity represents the identity function on Value.

Is Model Of:
Projection_object

Public Types

typedef Value argument_type
 
typedef Value result_type
 

Creation

 Identity ()
 default constructor. More...
 

Operations

result_typeoperator() (argument_type &x) const
 returns x. More...
 
const result_typeoperator() (const argument_type &x) const
 returns x. More...
 

Member Typedef Documentation

template<typename Value >
typedef Value CGAL::Identity< Value >::argument_type
template<typename Value >
typedef Value CGAL::Identity< Value >::result_type

Constructor & Destructor Documentation

template<typename Value >
CGAL::Identity< Value >::Identity ( )

default constructor.

Member Function Documentation

template<typename Value >
result_type& CGAL::Identity< Value >::operator() ( argument_type x) const

returns x.

template<typename Value >
const result_type& CGAL::Identity< Value >::operator() ( const argument_type x) const

returns x.