kakoune

Fork of kakoune, an acceptable text editor
git clone git://git.laack.co/kakoune.git
Log | Files | Refs

enum.hh (300B)


      1 #ifndef enum_hh_INCLUDED
      2 #define enum_hh_INCLUDED
      3 
      4 #include "string.hh"
      5 #include "meta.hh"
      6 
      7 namespace Kakoune
      8 {
      9 
     10 template<typename T> struct EnumDesc { T value; StringView name; };
     11 
     12 template<typename T>
     13 concept DescribedEnum = requires { enum_desc(Meta::Type<T>{}); };
     14 
     15 }
     16 
     17 #endif // enum_hh_INCLUDED