aboutsummaryrefslogtreecommitdiff
path: root/src/list/operation/contains.h
blob: 458acc0b89871670170cf742ddbec85864f570a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef TYPEASVALUE_SRC_LIST_OPERATION_CONTAINS_H_
#define TYPEASVALUE_SRC_LIST_OPERATION_CONTAINS_H_

#include "type.h"
#include "higher/query.h"
#include "function/apply.h"

namespace tav {

template <
	typename Element,
	typename List
>
using Contains = Any<
	Apply<EqualValue, _0, Element>::template type,
	List
>;

}

#endif  // TYPEASVALUE_SRC_LIST_OPERATION_CONTAINS_H_