shared_new

Creates a new shared pointer.

@trusted
shared_new
(
T
Args...
)
(
Args args
)

Parameters

args Args

The arguments to pass to T's constructor.

Return Value

Type: shared_ptr!T

A shared pointer pointing to the newly allocated object.

Meta