The OpenD Programming Language

isRefCounted

Determines if a type is RefCounted.

Examples

import automem.ref_counted: RefCounted;

static struct Point {
    int x;
    int y;
}

auto s = RefCounted!Point(2, 3);
static assert(isRefCounted!(typeof(s)));

auto p = Point(2, 3);
static assert(!isRefCounted!(typeof(p)));

Meta