CGAL::Identity<Value>

Definition

The class Identity<Value> represents the identity function on Value.

#include <CGAL/function_objects.h>

Is Model for the Concept

Projection_object

Identity<Value>::argument_type
typedef to Value.


Identity<Value>::result_type
typedef to Value.

Creation

Identity<Value> o;
default constructor.

Operations

result_type& o.operator() ( argument_type& x) const
returns x.
const result_type& o.operator() ( const argument_type& x) const
returns x.