Add Size function for TypeList
This commit is contained in:
parent
9c000bf6cd
commit
fd61eb5341
1 changed files with 6 additions and 0 deletions
|
@ -98,4 +98,10 @@ consteval auto FilterTypeList(TypeList<Ts...>, auto&& f) {
|
|||
};
|
||||
|
||||
|
||||
template <typename... Ts>
|
||||
consteval auto Size(TypeList<Ts...>) -> std::size_t {
|
||||
return sizeof...(Ts);
|
||||
};
|
||||
|
||||
|
||||
} // namespace utempl
|
||||
|
|
Loading…
Reference in a new issue