distortos  v0.7.0
object-oriented C++ RTOS for microcontrollers
estd::TypeErasedFunctor< R(Args...), true > Class Template Referenceabstract

TypeErasedFunctor class is an interface for type-erased functors. More...

#include "estd/TypeErasedFunctor.hpp"

Public Member Functions

virtual R operator() (Args... args)=0
 Function call operator of TypeErasedFunctor. More...
 

Protected Member Functions

 ~TypeErasedFunctor ()=default
 TypeErasedFunctor's destructor. More...
 

Detailed Description

template<typename R, typename... Args>
class estd::TypeErasedFunctor< R(Args...), true >

TypeErasedFunctor class is an interface for type-erased functors.

Overload with non-const operator()().

Template Parameters
Ris the type returned by TypeErasedFunctor::operator()()
Argsare the types of arguments for TypeErasedFunctor::operator()()

Constructor & Destructor Documentation

◆ ~TypeErasedFunctor()

template<typename R , typename... Args>
estd::TypeErasedFunctor< R(Args...), true >::~TypeErasedFunctor ( )
protecteddefault

TypeErasedFunctor's destructor.

Note
Polymorphic objects of TypeErasedFunctor type must not be deleted via pointer/reference

Member Function Documentation

◆ operator()()

template<typename R , typename... Args>
virtual R estd::TypeErasedFunctor< R(Args...), true >::operator() ( Args...  args)
pure virtual

Function call operator of TypeErasedFunctor.

Parameters
[in,out]argsare arguments for derived function
Returns
value returned by derived function

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