Create a new shared pointer of type T*, using allocator Allocator. T will be creating by using constructor that accepts Args, or by implicitly stating *newMem = args[0]. The default allocator is Mallocator.
auto sptr = newShared!int(42); assert((*sptr.ptr) == 42);
See Implementation
Create a new shared pointer of type T*, using allocator Allocator. T will be creating by using constructor that accepts Args, or by implicitly stating *newMem = args[0]. The default allocator is Mallocator.