hasFailure

Tests if something has failure method.

template hasFailure (
T
) {}

Members

Variables

hasFailure
enum bool hasFailure;
Undocumented in source.

Examples

struct A
{
    void failure(Exception e);
}

struct B
{
    void _failure(Exception e);
}

struct C
{
    void failure();
}

static assert(hasFailure!A);
static assert(!hasFailure!B);
static assert(!hasFailure!C);

Meta