diff --git a/include/utempl/type_list.hpp b/include/utempl/type_list.hpp index 552a54f..840afde 100644 --- a/include/utempl/type_list.hpp +++ b/include/utempl/type_list.hpp @@ -98,4 +98,10 @@ consteval auto FilterTypeList(TypeList, auto&& f) { }; +template +consteval auto Size(TypeList) -> std::size_t { + return sizeof...(Ts); +}; + + } // namespace utempl