MEL
Microthread & Execution library
mel::mpl::ReturnAdaptor< TRet, T, VARIABLE_ARGS > Class Template Reference

#include <ReturnAdaptorImpl.h>

Public Member Functions

 ReturnAdaptor (const T &functor, typename TypeTraits< TRet >::ParameterType retorno)
 
 ReturnAdaptor (const ReturnAdaptor &ob2)
 
TRet operator() (VARIABLE_ARGS_IMPL)
 

Detailed Description

template<class TRet, class T, VARIABLE_ARGS>
class mel::mpl::ReturnAdaptor< TRet, T, VARIABLE_ARGS >

adapt functor to return specific values

Example: you have the function: int funcion( float,char ) and you want to create a new function as this but returning a boolean, say true

returnAdaptor<float,char>( funcion, true ) so this created a new function as "funcion" but returning true


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