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

#include <CGAL/function_objects.h>

Definition

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

The class Get_address gets the address of an lvalue (operator&).

Is Model Of:
ProjectionObject

Public Types

typedef Value argument_type
 
typedef Value * result_type
 

Creation

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

◆ result_type

template<typename Value >
typedef Value* CGAL::Get_address< Value >::result_type

Constructor & Destructor Documentation

◆ Get_address()

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

default constructor.

Member Function Documentation

◆ operator()() [1/2]

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

returns &x.

◆ operator()() [2/2]

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

returns &x.