DGtal 1.3.0
Loading...
Searching...
No Matches
Public Member Functions
DGtal::functors::Cast< TOutput > Struct Template Reference

Aim: Define a simple functor using the static cast operator. More...

#include <DGtal/base/BasicFunctors.h>

Public Member Functions

template<typename TInput >
TOutput operator() (const TInput &aInput) const
 

Detailed Description

template<typename TOutput>
struct DGtal::functors::Cast< TOutput >

Aim: Define a simple functor using the static cast operator.

Description of template class 'Cast'

Template Parameters
TOutputtype of the return value
Examples
dec/exampleDECSurface.cpp.

Definition at line 393 of file BasicFunctors.h.

Member Function Documentation

◆ operator()()

template<typename TOutput >
template<typename TInput >
TOutput DGtal::functors::Cast< TOutput >::operator() ( const TInput &  aInput) const
inline

Operator

Returns
the conversion of aInput into an object of type TOutput.
Template Parameters
TInputtype of the input value

Definition at line 402 of file BasicFunctors.h.

403 {
404 return static_cast<TOutput>(aInput);
405 }

The documentation for this struct was generated from the following file: