STK++ 0.9.13
STK::CastOp< Type, OtherType > Struct Template Reference

Template functor which cast a type to another type. More...

#include <STK_Functors.h>

Public Types

enum  { NbParam_ = 1 }
 
typedef OtherType result_type
 
typedef hidden::RemoveConst< Type >::Type param1_type
 

Public Member Functions

result_type operator() (param1_type const &a) const
 

Detailed Description

template<typename Type, typename OtherType>
struct STK::CastOp< Type, OtherType >

Template functor which cast a type to another type.

Definition at line 985 of file STK_Functors.h.

Member Typedef Documentation

◆ param1_type

template<typename Type , typename OtherType >
typedef hidden::RemoveConst<Type>::Type STK::CastOp< Type, OtherType >::param1_type

Definition at line 989 of file STK_Functors.h.

◆ result_type

template<typename Type , typename OtherType >
typedef OtherType STK::CastOp< Type, OtherType >::result_type

Definition at line 988 of file STK_Functors.h.

Member Enumeration Documentation

◆ anonymous enum

Enumerator
NbParam_ 

Definition at line 987 of file STK_Functors.h.

987{ NbParam_ = 1 };

Member Function Documentation

◆ operator()()

template<typename Type , typename OtherType >
result_type STK::CastOp< Type, OtherType >::operator() ( param1_type const a) const
inline

Definition at line 991 of file STK_Functors.h.

991{ return static_cast<OtherType>(a);}

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