aboutsummaryrefslogtreecommitdiff
path: root/src/list/operation/higher/drop_while.h
blob: 1207020d8b238ca97a3d3fbb958ef085172dd739 (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
#ifndef TYPEASVALUE_SRC_LIST_OPERATION_HIGHER_DROP_WHILE_H_
#define TYPEASVALUE_SRC_LIST_OPERATION_HIGHER_DROP_WHILE_H_

#include "list_index.h"
#include "list/operation/drop.h"
#include "utility/predicate.h"

namespace tav {

template <
	template<typename> class Predicate,
	typename                 List
>
using DropWhile = Drop<
	typename utility::predicate_assurance<
		utility::predicate_negator<std::is_void>::template function,
		Length<List>
	>::template assure<
		ListIndex<
			utility::predicate_negator<Predicate>::template function,
			List
		>
	>,
	List
>;

}

#endif  // TYPEASVALUE_SRC_LIST_OPERATION_HIGHER_DROP_WHILE_H_