blob: 105e83cd9a2645d686769e9c5f946fd499d6283b (
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_TAKE_WHILE_H_
#define TYPEASVALUE_SRC_LIST_OPERATION_HIGHER_TAKE_WHILE_H_
#include "list_index.h"
#include "list/operation/take.h"
#include "utility/predicate.h"
namespace tav {
template <
template<typename> class Predicate,
typename List
>
using TakeWhile = Take<
typename utility::predicate_assurance<
IsSize,
Length<List>
>::template assure<
ListIndex<
utility::predicate_negator<Predicate>::template function,
List
>
>,
List
>;
}
#endif // TYPEASVALUE_SRC_LIST_OPERATION_HIGHER_TAKE_WHILE_H_
|