UniqTuple

Creates a generic tuple comprised of unique consecutive elemetns of A.

Equivalence of elements is assessed by using a binary predicate pred.

Members

Aliases

UniqTuple
alias UniqTuple = A
Undocumented in source.
UniqTuple
alias UniqTuple = GenericTuple!(A[0], Impl!(A[0], A[1..$]))
Undocumented in source.
predTemplate
alias predTemplate = binaryPred!pred
Undocumented in source.

Templates

Impl
template Impl(A...)
Undocumented in source.

Examples

alias expr = expressionTuple!(1, 2, 2, 2, 3, 3, 4, 1, 1);
static assert(UniqTuple!(`a == b`, expr) == expressionTuple!(1, 2, 3, 4, 1));
static assert(UniqTuple!(`a != b`, expr) == expressionTuple!(1, 1, 1));

Analog of $(STDREF algorithm, uniq) for generic tuples except pred must be explicitly specified.

Meta