CGAL 5.1 - STL Extensions for CGAL
CGAL::Identity< Value > Struct Template Reference

#include <CGAL/function_objects.h>

Definition

template<typename Value>
struct CGAL::Identity< Value >

The class Identity represents the identity function on Value.

Is Model Of:
ProjectionObject

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

◆ argument_type

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

◆ result_type

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

Constructor & Destructor Documentation

◆ Identity()

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

default constructor.

Member Function Documentation

◆ operator()() [1/2]

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

returns x.

◆ operator()() [2/2]

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

returns x.