mud.memory.smartpointers

Undocumented in source.

Members

Functions

newShared
auto newShared(Args args)

Create a new shared pointer of class type T, using allocator Allocator. T will be created by using constructor that accepts Args. The default allocator is Mallocator.

newShared
auto newShared(Args args)

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.

newUnique
auto newUnique(Args args)

Create a new unique pointer of class type T, using allocator Allocator. T will be created by using constructor that accepts Args. The default allocator is Mallocator.

newUnique
auto newUnique(Args args)

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].

Structs

SPtr
struct SPtr(T, Allocator = Mallocator)

Shared Pointer of type T, using allocator Allocator. The default allocator is Mallocator.

UPtr
struct UPtr(T, Allocator = Mallocator)

Unique pointer of type T, using allocator Allocator. The default allocator is Mallocator.

Meta