summaryrefslogtreecommitdiff
path: root/src/bindings/cxx/eina_cxx/eina_function.hh
blob: cef6da5a432db789c32a745326f8bbfc7eea813c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#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