DGtal  0.9.3
Public Member Functions
DGtal::functors::Cast< TOutput > Struct Template Reference

#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

Definition at line 260 of file BasicFunctors.h.

Member Function Documentation

◆ operator()()

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


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

Definition at line 269 of file BasicFunctors.h.

270  {
271  return static_cast<TOutput>(aInput);
272  }

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