aboutsummaryrefslogtreecommitdiff
path: root/src/list/operation/higher/partition.h
blob: a0ea379490f38e8e5441e5754de9bf61195318b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef TYPEASVALUE_SRC_LIST_OPERATION_HIGHER_PARTITION_H_
#define TYPEASVALUE_SRC_LIST_OPERATION_HIGHER_PARTITION_H_

#include "filter.h"

namespace tav {

template <
	template<typename> class Predicate,
	typename                 List
>
using Partition = Cons<
	typename Filter<Predicate, List>::type,
	typename Remove<Predicate, List>::type
>;

}

#endif  // TYPEASVALUE_SRC_LIST_OPERATION_HIGHER_PARTITION_H_