#include <ReturnAdaptorImpl.h>
Public Member Functions | |
| ReturnAdaptor (const T &functor, typename TypeTraits< TRet >::ParameterType retorno) | |
| ReturnAdaptor (const ReturnAdaptor &ob2) | |
| TRet | operator() (VARIABLE_ARGS_IMPL) |
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