ClickHouse/src/Common/Concepts.h
2023-04-05 19:43:30 +00:00

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);
};
}