Checks if this stores a non-null pointer, i.e. whether this != null.
SharedPtr!long x = SharedPtr!long.make(123); assert(cast(bool)x); //explicit cast assert(x); //implicit cast x = null; assert(!cast(bool)x); //explicit cast assert(!x); //implicit cast
See Implementation
Checks if this stores a non-null pointer, i.e. whether this != null.