allSameRecursive

template allSameRecursive (
V...
) if (
isExpressions!V
) {
enum allSameRecursive;
enum allSameRecursive;
enum allSameRecursive;
}

Return Value

true iff all values V are the same.

Same as NoDuplicates!V.length == 1

Examples

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

See Also

Meta