Return a shared_ptr object referring to and managing a new ELEMENT_TYPE object. The default allocator will be used to supply a single contiguous region of memory holding the returned shared pointer's internal representation and the new ELEMENT_TYPE object, which is default‐constructed.

Synopsis

Declared in <bslstl_sharedptr.h>

template<class ELEMENT_TYPE>
bsl::shared_ptr<ELEMENT_TYPE>
make_shared_for_overwrite()
requires !is_array<ELEMENT_TYPE>::value;

Created with MrDocs