blob: 021698f96a2ab8fbd77cef417f55abc3edff9e1a (
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 TYPEASVALUE_SRC_LIST_OPERATION_HIGHER_DROP_WHILE_H_
#define TYPEASVALUE_SRC_LIST_OPERATION_HIGHER_DROP_WHILE_H_
#include "conditional/if.h"
namespace tav {
namespace detail {
template <
template<typename> class Predicate,
typename Current
>
struct DropWhile {
typedef If<
Eval<Predicate<Head<Current>>>,
Eval<DropWhile<Predicate, Tail<Current>>>,
Current
> type;
};
template <
template<typename> class Predicate
>
struct DropWhile<Predicate, void> {
typedef void type;
};
}
template <
template<typename> class Predicate,
typename Current
>
using DropWhile = Eval<detail::DropWhile<Predicate, Current>>;
}
#endif // TYPEASVALUE_SRC_LIST_OPERATION_HIGHER_DROP_WHILE_H_
|