Creates a not_null_shared_ptr using an allocator, like std::allocate_shared.
Declared in <folly/memory/not_null.h>
template<
typename T,
typename Alloc,
typename... Args>
/* implementation-defined */
allocate_not_null_shared(
Alloc const& alloc,
Args&&... args);
A not_null_shared_ptr owning the new object.
| Name | Description |
|---|---|
| alloc | Allocator used for the shared control block and object. |
| args | Arguments forwarded to the constructed object. |