The Battle for Wesnoth  1.17.10+dev
Classes | Namespaces | Macros
enum_base.hpp File Reference
#include <array>
#include <optional>
#include <string>
#include <string_view>
#include <tuple>
Include dependency graph for enum_base.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  string_enums::enum_base< Definition >
 The base template for associating string values with enum values. More...
 

Namespaces

 string_enums
 

Macros

#define ENUM_AND_ARRAY(...)
 

Macro Definition Documentation

◆ ENUM_AND_ARRAY

#define ENUM_AND_ARRAY (   ...)
Value:
enum class type { __VA_ARGS__ }; \
static constexpr std::array values{__VA_ARGS__};

Definition at line 96 of file enum_base.hpp.