srs-control 0.2.2
Loading...
Searching...
No Matches
GlazeCustom.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <glaze/core/meta.hpp>
4#include <magic_enum/magic_enum.hpp>
5
6namespace glz
7{
8 template <typename T>
9 requires std::is_enum_v<T>
10 struct meta<T>
11 {
12 static constexpr auto keys = magic_enum::enum_names<T>();
13 static constexpr auto value = magic_enum::enum_values<T>();
14 };
15} // namespace glz
static constexpr auto value
static constexpr auto keys