efl/src/bindings/cxx/eina_cxx/eina_function.hh

27 lines
431 B
C++
Raw Normal View History

#ifndef EFL_EINA_FUNCTION_HH
#define EFL_EINA_FUNCTION_HH
namespace efl { namespace eina { namespace _mpl {
template <typename T>
struct function_params;
template <typename R, typename... P>
struct function_params<R(*)(P...)>
{
typedef std::tuple<P...> type;
};
template <typename T>
struct function_return;
template <typename R, typename... P>
struct function_return<R(*)(P...)>
{
typedef R type;
};
} } }
#endif