bsl::shared_ptr::shared_ptr

Create an empty shared pointer.

Synopsis

Declared in <bslstl_sharedptr.h>

shared_ptr(
    nullptr_t nullPointerLiteral,
    BloombergLP::bslma::Allocator* basicAllocator);

Description

Create an empty shared pointer. The specified nullPointerLiteral and basicAllocator are not used. Note that use of this constructor is equivalent to calling the default constructor.

Parameters

NameDescription
nullPointerLiteralnull-pointer literal (unused; selects this overload)
basicAllocatorallocator used to supply memory