Add Size function for TypeList

This commit is contained in:
sha512sum 2024-07-03 11:39:09 +00:00
parent 9c000bf6cd
commit fd61eb5341

View file

@ -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 } // namespace utempl