Deduce the specified type ELEMENT_TYPE corresponding template parameter of the std::unique_ptr 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 DELETER,
class ALLOC>
requires bsl::is_convertible_v<ALLOC *, BloombergLP::bslma::Allocator *>
shared_ptr<ELEMENT_TYPE>(
std::unique_ptr<ELEMENT_TYPE, DELETER>,
ALLOC*) → shared_ptr<ELEMENT_TYPE>;
Created with MrDocs