Same as the overload taking bslma::Allocator *, but accepts a class‐type allocator.

Synopsis

Declared in <bslma_managedptr.h>

template<
    class ELEMENT_TYPE,
    class ALLOCATOR,
    class... ARGS>
static
ManagedPtr<ELEMENT_TYPE>
allocateManaged(
    ALLOCATOR const& allocator,
    ARGS&&... args)
requires bsl::is_class<ALLOCATOR>::value;

Created with MrDocs