summaryrefslogtreecommitdiff
path: root/src/bindings/eet_cxx/eet_tuple.hh
blob: 2fbb3950b56716a803590bda066da18eded6fcff (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
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef EFL_EET_EET_TUPLE_HH_
#define EFL_EET_EET_TUPLE_HH_

namespace efl { namespace eet {

namespace _mpl {

template <typename A, typename... Args>
struct push_back;

template <template <typename... Args> class C, typename... Args, typename... AArgs>
struct push_back<C<Args...>, AArgs...>
{
  typedef C<Args..., AArgs...> type;
};

template <typename A, typename... Args>
struct push_front;

template <template <typename... Args> class C, typename... Args, typename... AArgs>
struct push_front<C<Args...>, AArgs...>
{
  typedef C<Args..., AArgs...> type;
};

template <typename A>
struct pop_front;

template <template <typename...> class C, typename T, typename... Args>
struct pop_front<C<T, Args...> >
{
  typedef C<Args...> type;
};

}

} }

#endif