cpp/memory/unique ptr/make unique

Constructs an object of type and wraps it in a std.

@1@ Constructs a non-array type. The arguments are passed to the constructor of. . The function is equivalent to:

@2@ Constructs an array of the given dynamic size. The array elements are value-initialized. . The function is equivalent to:

@3,6@ Construction of arrays of known bound is disallowed.

@4@ Same as, except that the object is default-initialized. . The function is equivalent to:

@5@ Same as, except that the array is default-initialized. . The function is equivalent to:

Return value
std of an instance of type.

Exceptions
May throw std or any exception thrown by the constructor of. If an exception is thrown, this function has no effect.