bsl::shared_ptr<ELEMENT_TYPE>

Deduce the specified type ELEMENT_TYPE corresponding template parameter of the bslma::ManagedPtr supplied to the constructor of shared_ptr. This guide does not participate in deduction unless the specified ALLOC inherits from bslma::Allocator.

Synopsis

Declared in <bslstl_sharedptr.h>

template<
    class ELEMENT_TYPE,
    class ALLOC>
requires bsl::is_convertible_v<ALLOC *, BloombergLP::bslma::Allocator *>
shared_ptr<ELEMENT_TYPE>(
    BloombergLP::bslma::ManagedPtr<ELEMENT_TYPE>,
    ALLOC*) -> shared_ptr<ELEMENT_TYPE>;