containsDynamicArray

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

template containsDynamicArray (
T
) {}

Members

Static variables

containsDynamicArray
auto containsDynamicArray;
Undocumented in source.

Parameters

T

type to check

Return Value

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

Examples

static assert (!containsDynamicArray!(void));

static struct S
{
    int[] x;
}
static assert ( containsDynamicArray!(const(S)));

static struct S2
{
    struct Arr { const(int[]) x; }
    Arr[3][4] arr;
}

static assert( containsDynamicArray!(immutable(S2)));

Meta