mustAddGCRange

Indicates if an aggregate contains members that might be collected by the garbage collector. This is used in constructors to determine if the content of a manually allocated aggregate must be declared to the GC.

template mustAddGCRange (
T
) {
enum mustAddGCRange;
enum mustAddGCRange;
enum mustAddGCRange;
enum mustAddGCRange;
enum mustAddGCRange;
enum mustAddGCRange;
}

Examples

static assert(!mustAddGCRange!int);
static assert(mustAddGCRange!(int*));
static assert(mustAddGCRange!(int*[1]));
static assert(!mustAddGCRange!(int*[0]));
static assert(mustAddGCRange!(int[]));

Meta