hasMethod

Test if type (T) has specified method (m), local or derived

bool
hasMethod
(
T
string m
)
()

Examples

struct Foo
{
    int bar() { return 0; }
}

assert(hasMethod!(Foo, "bar")() == true);
assert(hasMethod!(Foo, "foo")() == false);

Meta