Enum member isIntrusivePtr
Check if type T
is IntrusivePtr
.
enum isIntrusivePtr(T)
= isInstanceOf!(IntrusivePtr, T);
Example
static assert(!isIntrusivePtr!long);
static assert(!isIntrusivePtr!(void*));
static struct Foo{
ControlBlock!(int, int) control;
}
static assert(isIntrusivePtr!(IntrusivePtr!Foo));
static assert(isIntrusivePtr!(IntrusivePtr!Foo .WeakType));