RadialTupleMiddle

Creates a generic tuple comprised of all elemetns of A which are teken starting from a given point and progressively extending left and right from that point. If RadialTupleMiddle is used or startingIndex is -1 it is assumed that no initial point is given and iteration starts from the middle of A.

  1. template RadialTuple(size_t startingIndex, A...)
  2. alias RadialTupleMiddle(A...) = RadialTuple!(-1, A)
    alias RadialTupleMiddle(A...) = RadialTuple!(-1, A)

Examples

static assert(RadialTuple!(-1, 1, 2, 3, 4, 5) == expressionTuple!(3, 4, 2, 5, 1));
static assert(RadialTuple!( 1, 1, 2, 3, 4, 5) == expressionTuple!(2, 3, 1, 4, 5));

Analog of $(STDREF range, radial) for generic tuples except startingIndex is the first argument and there is no overload without it.

Meta