bsl::shared_ptr::createInplace

createInplace overloads

Synopses

Declared in <bslstl_sharedptr.h>

Create the managed object in-place using the default allocator.

void
createInplace();
» more...

Create the managed object in-place using basicAllocator.

template<class... ARGS>
void
createInplace(
    BloombergLP::bslma::Allocator* basicAllocator,
    ARGS&&... args);
» more...

Parameters

NameDescription
basicAllocatorallocator used to supply memory
argsconstructor arguments forwarded to the new object