From b8af319d57fb52e369d724af3bb7c87c4bd51276 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Tue, 16 Dec 2025 15:01:32 +0100 Subject: Adding helper for broad size of schemas --- modules/codec/c++/schema.hpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'modules/codec/c++') diff --git a/modules/codec/c++/schema.hpp b/modules/codec/c++/schema.hpp index 65d7158..3eb7f79 100644 --- a/modules/codec/c++/schema.hpp +++ b/modules/codec/c++/schema.hpp @@ -359,4 +359,26 @@ template struct schema_iface_type_group> { using Type = typename tmpl_reduce::Type>::type; }; + +template +struct schema_width { + static_assert(always_false, "Expecting a Structural Schema."); + + constexpr static uint64_t value = 0u; +}; + +template +struct schema_width> { + constexpr static uint64_t value = sizeof...(T); +}; + +template +struct schema_width> { + constexpr static uint64_t value = sizeof...(T); +}; + +template +struct schema_width> { + constexpr static uint64_t value = sizeof...(T); +}; } // namespace saw -- cgit v1.2.3