has

Undocumented in source. Be warned that the author may not have intended to support it.
  1. auto has(E e)
  2. auto has(E e)
    has
    (
    E
    )
    (
    E e
    )
    if (
    is(E == enum)
    )

Examples

enum E
{
	init = 0,
	foo = 1 << 0,
	bar = 1 << 1,
}
assert(E.foo.has.foo);
E e;
assert(!e.has.foo);
e.has.foo = true;
assert(e.has.foo);

Meta