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

#include <CGAL/function_objects.h>

Definition

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

The class Dereference dereferences a pointer (operator*).

Is Model Of:
ProjectionObject

Public Types

typedef Value * argument_type
 
typedef Value result_type
 

Creation

 Dereference ()
 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::Dereference< Value >::argument_type

◆ result_type

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

Constructor & Destructor Documentation

◆ Dereference()

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

default constructor.

Member Function Documentation

◆ operator()() [1/2]

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

returns *x.

◆ operator()() [2/2]

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

returns *x.