isSameSlices

Is true iff all Ts are slices with same unqualified matching element types.

Used to define template-restrictions on template parameters of only arrays (slices) of the same unqualified element types.

Members

Aliases

E
alias E = typeof(Ts[0].init[0])
Undocumented in source.

Enums

isSlice
eponymoustemplate isSlice(T)
Undocumented in source.
isSliceOf
eponymoustemplate isSliceOf(T, E)
Undocumented in source.

Manifest constants

isSameSlices
enum isSameSlices;
Undocumented in source.
isSameSlices
enum isSameSlices;
Undocumented in source.
isSameSlices
enum isSameSlices;
Undocumented in source.

Examples

static assert(isSameSlices!(int[], int[]));
static assert(isSameSlices!(const(int)[], int[]));
static assert(isSameSlices!(int[], const(int)[]));
static assert(isSameSlices!(int[], immutable(int)[]));

static assert(isSameSlices!(int[], int[], int[]));
static assert(isSameSlices!(int[], const(int)[], int[]));
static assert(isSameSlices!(int[], const(int)[], immutable(int)[]));
static assert(isSameSlices!(const(int)[], const(int)[], const(int)[]));

static assert(!isSameSlices!(int, char));
static assert(!isSameSlices!(int, const(char)));
static assert(!isSameSlices!(int, int));

static assert(!isSameSlices!(int[], char[]));
static assert(!isSameSlices!(int[], char[], char[]));
static assert(!isSameSlices!(char[], int[]));

static assert(!isSameSlices!(char[], dchar[]));
static assert(!isSameSlices!(wchar[], dchar[]));
static assert(!isSameSlices!(char[], wchar[]));

Meta