blob: 651dad5f8a0c3877407b3edfc3cbde185ea7b757 (
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
|
#ifndef TYPEASVALUE_SRC_LIST_OPERATION_DROP_H_
#define TYPEASVALUE_SRC_LIST_OPERATION_DROP_H_
#include "operation/math.h"
namespace tav {
template <
typename Count,
typename Current
>
struct Drop {
typedef typename Drop<
Substract<Count, Size<1>>,
Tail<Current>
>::type type;
};
template <typename Current>
struct Drop<Size<0>, Current> {
typedef Current type;
};
template <typename Count>
struct Drop<Count, void> {
typedef void type;
};
template <>
struct Drop<Size<0>, void> {
typedef void type;
};
}
#endif // TYPEASVALUE_SRC_LIST_OPERATION_DROP_H_
|