mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 17:32:32 +00:00
19 lines
271 B
C++
19 lines
271 B
C++
#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);
|
|
};
|
|
|
|
}
|