Creates a DelayedDestructionUniquePtr owning a new object.

Synopsis

Declared in <folly/io/async/DelayedDestruction.h>

template<
    typename T,
    typename... A>
DelayedDestructionUniquePtr<T>
makeDelayedDestructionUniquePtr(A&&... a);

Return Value

A unique pointer owning the newly created object.

Template Parameters

Name

Description

T

The DelayedDestruction subtype to create.

A

The constructor argument types.

Parameters

Name

Description

a

The arguments forwarded to the object's constructor.

Created with MrDocs