Is there an easy (concise, maybe one-liner) way to check if a string is 'inside' an enum?
i.e.
typedef enum {alpha, beta, gamma, delta, epsilon} my_enum;
string my_string;
my_string = <something>;
//I know this is not possible, but I try to do something like this
if (my_string inside {my_enum.names}) // where names would imply all of the enumeration option strings
I try to avoid walking thru all of the enumerated values, which is what I currently do (and which works fine).