aboutsummaryrefslogtreecommitdiffstats
path: root/src/bindings/eina_cxx/eina_tuple.hh
blob: f0f22d9cae23f73f0a7562bc5784db6cd13bee27 (plain) (blame)
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
#ifndef EFL_EINA_EINA_TUPLE_HH_
#define EFL_EINA_EINA_TUPLE_HH_

namespace efl { namespace eina { 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