Creates a not_null_unique_ptr, like std::make_unique.

Synopsis

Declared in <folly/memory/not_null.h>

template<
    typename T,
    typename... Args>
/* implementation-defined */
make_not_null_unique(Args&&... args);

Return Value

A not_null_unique_ptr owning the new object.

Parameters

Name

Description

args

Arguments forwarded to the constructed object.

Created with MrDocs