blob: 9e752ed331453aaacf7a53a93f1c85285b1c34bc (
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
|
#ifndef TYPEASVALUE_SRC_LIST_OPERATION_CONTAINS_H_
#define TYPEASVALUE_SRC_LIST_OPERATION_CONTAINS_H_
#include "higher/query.h"
namespace tav {
template <
typename Element,
typename List
>
class Contains {
private:
template <typename Current>
struct comparator {
typedef std::is_same<Current, Element> type;
};
public:
typedef typename Any<comparator, List>::type type;
};
}
#endif // TYPEASVALUE_SRC_LIST_OPERATION_CONTAINS_H_
|