ClickHouse/src/Common/Concepts.h

19 lines
271 B
C++
Raw Normal View History

2022-03-11 10:04:35 +00:00
#pragma once
#include <concepts>
namespace DB
{
2023-04-05 12:25:51 +00:00
template<typename T, typename ... U>
concept is_any_of = (std::same_as<T, U> || ...);
2022-03-11 10:04:35 +00:00
template <typename... T>
concept OptionalArgument = requires(T &&...)
{
requires(sizeof...(T) == 0 || sizeof...(T) == 1);
};
}