containsMultiDimensionalDynamicArrays

Checks if T or any of its subtypes is a multi-dimensional dynamic array.

template containsMultiDimensionalDynamicArrays (
T
) {}

Members

Static variables

containsMultiDimensionalDynamicArrays
auto containsMultiDimensionalDynamicArrays;
Undocumented in source.

Parameters

T

type to check

Return Value

true if T or any of its subtypes is a multi-dimensional dynamic array or false otherwise.

Examples

static assert (!containsMultiDimensionalDynamicArrays!(int));
static assert ( containsMultiDimensionalDynamicArrays!(int[][]));

static struct S
{
    int[][] arr;
}

static assert ( containsMultiDimensionalDynamicArrays!(S));

Meta