2015-11-20 09:50:53 +01:00
|
|
|
#ifndef enum_hh_INCLUDED
|
|
|
|
#define enum_hh_INCLUDED
|
|
|
|
|
|
|
|
#include "string.hh"
|
2020-11-11 11:43:27 +01:00
|
|
|
#include "meta.hh"
|
2015-11-20 09:50:53 +01:00
|
|
|
|
|
|
|
namespace Kakoune
|
|
|
|
{
|
|
|
|
|
|
|
|
template<typename T> struct EnumDesc { T value; StringView name; };
|
|
|
|
|
2020-11-11 11:43:27 +01:00
|
|
|
template<typename T>
|
|
|
|
concept DescribedEnum = requires { enum_desc(Meta::Type<T>{}); };
|
|
|
|
|
2015-11-20 09:50:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // enum_hh_INCLUDED
|