Add Type in TypeList if using only 1 type
This commit is contained in:
parent
9273af7163
commit
33934a5479
1 changed files with 5 additions and 0 deletions
|
@ -19,6 +19,11 @@ template <typename... Ts>
|
|||
struct TypeList {
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
struct TypeList<T> {
|
||||
using Type = T;
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
inline constexpr auto kType = TypeList<T>{};
|
||||
|
||||
|
|
Loading…
Reference in a new issue