From 5c3e15f41e037d1b647124ba6374b68488c36a9b Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Tue, 20 Jan 2026 11:32:41 +0100 Subject: added value group for templates --- modules/core/c++/templates.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'modules') diff --git a/modules/core/c++/templates.hpp b/modules/core/c++/templates.hpp index 921fabb..7b0b297 100644 --- a/modules/core/c++/templates.hpp +++ b/modules/core/c++/templates.hpp @@ -14,6 +14,12 @@ struct tmpl_group { static constexpr uint64_t size = sizeof...(T); }; +template +struct tmpl_value_group { + static constexpr string_literal name = "tmpl_value_group"; + static constexpr uint64_t size = sizeof...(values); +}; + /** * Concats two tmpl_group into one */ @@ -25,6 +31,11 @@ struct tmpl_concat, tmpl_group> { using type = tmpl_group; }; +template +struct tmpl_concat,tmpl_value_group> { + using type = tmpl_value_group; +}; + /** * Returns the position of the parameter type in the parameter pack */ -- cgit v1.2.3