diff options
Diffstat (limited to 'modules/core')
-rw-r--r-- | modules/core/c++/templates.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/core/c++/templates.hpp b/modules/core/c++/templates.hpp index 9f629da..fc9d368 100644 --- a/modules/core/c++/templates.hpp +++ b/modules/core/c++/templates.hpp @@ -13,6 +13,9 @@ struct tmpl_group { static constexpr string_literal name = "tmpl_group"; }; +/** + * Concats two tmpl_group into one + */ template<typename T, typename U> struct tmpl_concat; @@ -21,6 +24,9 @@ struct tmpl_concat<tmpl_group<T...>, tmpl_group<U...>> { using type = tmpl_group<T..., U...>; }; +/** + * Returns the position of the parameter type in the parameter pack + */ template <class T, class... TL> struct parameter_pack_index; template <class T, class... TL> struct parameter_pack_index<T, T, TL...> { |