Creates a not_null_shared_ptr, like std::make_shared.

Synopsis

Declared in <folly/memory/not_null.h>

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

Return Value

A not_null_shared_ptr owning the new object.

Parameters

Name

Description

args

Arguments forwarded to the constructed object.

Created with MrDocs