equalTuple

Detect whether two packed generic tuples packedTuple1 and packedTuple2 elements are equal according to binary predicate pred.

isSame is used if no predicacte specified.

Members

Aliases

predTemplate
alias predTemplate = binaryPred!pred
Undocumented in source.

Manifest constants

equalTuple
enum equalTuple;
Undocumented in source.
equalTuple
enum equalTuple;
Undocumented in source.

Templates

instForPackedTuple
template instForPackedTuple(alias packedTuple)
Undocumented in source.

Examples

static assert( equalTuple!(packedExpressionTuple!(0, 1), packedExpressionTuple!(iotaTuple!2)));
static assert( equalTuple!(PackedGenericTuple!(int, "a"), PackedGenericTuple!(int, "a")));

static assert( equalTuple!(`true`, packedExpressionTuple!1, PackedTypeTuple!int));
static assert(!equalTuple!(`true`, packedExpressionTuple!1, packedExpressionTuple!()));

Analog of $(STDREF algorithm, equal) for generic tuples.

Meta