aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Common/Concepts.h
blob: 927f42aa4bea2622dbab6e79d31b78d84f5049cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include <concepts>

namespace DB
{

template<typename T, typename ... U>
concept is_any_of = (std::same_as<T, U> || ...);


template <typename... T>
concept OptionalArgument = requires(T &&...)
{
    requires(sizeof...(T) == 0 || sizeof...(T) == 1);
};

}