CGAL 6.2 - STL Extensions for CGAL

Loading...
Searching...
No Matches
List of all members | Public Types
CGAL::Cast_function_object< Arg, Result > Struct Template Reference
Reference Manual » Projection Function Objects

`#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.

## Operations
result_type & | operator() (argument_type &x) const
| returns `(Result)x`.
const result_type & | operator() (const argument_type &x) const
| returns `(Result)x`.