Add Type in TypeList if using only 1 type

This commit is contained in:
sha512sum 2024-03-07 15:49:01 +00:00
parent 9273af7163
commit 33934a5479

View file

@ -19,6 +19,11 @@ template <typename... Ts>
struct TypeList { struct TypeList {
}; };
template <typename T>
struct TypeList<T> {
using Type = T;
};
template <typename T> template <typename T>
inline constexpr auto kType = TypeList<T>{}; inline constexpr auto kType = TypeList<T>{};