CGAL 5.1 - STL Extensions for CGAL
CGAL::Cast_function_object< Arg, Result > Struct Template Reference

#include <CGAL/function_objects.h>

Definition

template<typename Arg, typename Result>
struct CGAL::Cast_function_object< Arg, Result >

The class Cast_function_object applies a C-style type cast to its argument.

Is Model Of:
ProjectionObject

Public Types

typedef Arg argument_type
 
typedef Result result_type
 

Creation

 Cast_function_object ()
 default constructor. More...
 

Operations

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

Member Typedef Documentation

◆ argument_type

template<typename Arg , typename Result >
typedef Arg CGAL::Cast_function_object< Arg, Result >::argument_type

◆ result_type

template<typename Arg , typename Result >
typedef Result CGAL::Cast_function_object< Arg, Result >::result_type

Constructor & Destructor Documentation

◆ Cast_function_object()

template<typename Arg , typename Result >
CGAL::Cast_function_object< Arg, Result >::Cast_function_object ( )

default constructor.

Member Function Documentation

◆ operator()() [1/2]

template<typename Arg , typename Result >
result_type& CGAL::Cast_function_object< Arg, Result >::operator() ( argument_type x) const

returns (Result)x.

◆ operator()() [2/2]

template<typename Arg , typename Result >
const result_type& CGAL::Cast_function_object< Arg, Result >::operator() ( const argument_type x) const

returns (Result)x.