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.

  1. template equalTuple(alias pred, alias packedTuple1, alias packedTuple2)
  2. eponymoustemplate equalTuple(alias packedTuple1, alias packedTuple2)
    enum equalTuple (
    alias packedTuple1
    alias packedTuple2
    )

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