A C++ template library for embedded applications
Designed and maintained by
Aster Consulting Ltd

function

A set of wrapper templates to allow a member or static function to be called without the caller having to know the specific
details of the callee apart from the parameter type. This template class may be used to link interrupt vectors to specific
member functions of a handler class.

See the tutorial.

Class definitions

template <typename TParameter>
class ifunction
Interface class for a function taking one parameter.

template <>
class ifunction<void>
Interface class for a function taking no parameters.

template <typename TObject, typename TParameter>
class function : public ifunction<TParameter>
Class for a member function taking one parameter.

template <typename TObject>
class function<TObject, void> : public ifunction<void>
Class for a member function taking no parameters.

template <typename TParameter>
class function<void, TParameter> : public ifunction<TParameter>
Class for a free function taking one parameter.

template <>
class function<void, void> : public ifunction<void>
Class for a free function taking no parameters.
function.h