allSameIterative

template allSameIterative (
V...
) {
enum allSameIterative;
enum allSameIterative;
enum allSameIterative;
}

Return Value

true iff all values V are the same.

Examples

static assert( allSameIterative!());
static assert( allSameIterative!(42));
static assert( allSameIterative!(42, 42));
static assert( allSameIterative!(42, 42, 42));
static assert(!allSameIterative!(42, 43, 42));

static assert( allSameIterative!(int));
static assert( allSameIterative!(int, int));
static assert( allSameIterative!(int, int, int));
static assert(!allSameIterative!(int, byte, int));

See Also

Meta