diff options
Diffstat (limited to 'modules/codec/c++/schema.hpp')
-rw-r--r-- | modules/codec/c++/schema.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/codec/c++/schema.hpp b/modules/codec/c++/schema.hpp index 7df47b3..3820cf3 100644 --- a/modules/codec/c++/schema.hpp +++ b/modules/codec/c++/schema.hpp @@ -33,6 +33,13 @@ template <typename Schema, string_literal Literal> struct Member { static constexpr string_literal KeyLiteral = Literal; }; +template<typename Key, typename Value> struct Map { + static constexpr string_literal name = "Map"; + + using KeyType = Key; + using ValueType = Value; +}; + template <typename... T> struct Struct { static_assert( always_false<T...>, |