unique_new

Creates a new unique pointer.

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

Parameters

args Args

The arguments to pass to T's constructor.

Return Value

Type: unique_ptr!T

A unique pointer pointing to the newly allocated object.

Meta