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 939 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 943 of file STK_Functors.h.

◆ result_type

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

Definition at line 942 of file STK_Functors.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename Type, typename OtherType>
anonymous enum
Enumerator
NbParam_ 

Definition at line 941 of file STK_Functors.h.

941{ 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 945 of file STK_Functors.h.

945{ return static_cast<OtherType>(a);}
Template functor which cast a type to another type.

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