hasOnAccessEmptyValue

Template to determine if hook provides function called on empty value.

@safe
template hasOnAccessEmptyValue (
Hook
E
) {
enum hasOnAccessEmptyValue;
enum hasOnAccessEmptyValue;
}

Examples

struct Foo {}
struct Bar { static void onAccessEmptyValue(E)(E err) {} }
static assert(!hasOnAccessEmptyValue!(Foo, string));
static assert(hasOnAccessEmptyValue!(Bar, string));

Meta