isNotEqual

Tests whether Args[0] isn't equal to Args[1].

$(D_PSYMBOL isNotEqual) checks first if Args can be compared directly. If not, they are compared as types: is(Args[0] == Args[1]). It it fails, the arguments are considered to be not equal.

template isNotEqual (
Args...
) if (
Args.length == 2
) {}

Members

Variables

isNotEqual
enum bool isNotEqual;
Undocumented in source.

Parameters

Args

Two aliases to compare for equality.

Return Value

$(D_KEYWORD true) if Args[0] isn't equal to Args[1], $(D_KEYWORD false) otherwise.

Examples

static assert(!isNotEqual!(int, int));
static assert(isNotEqual!(5, int));
static assert(isNotEqual!(5, 8));

Meta