isRefCounted

Determines if a type is RefCounted.

Members

Manifest constants

isRefCounted
enum isRefCounted;
Undocumented in source.

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