[#BloombergLP-bslma-ManagedPtrUtil-makeManaged] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/ManagedPtrUtil.adoc[ManagedPtrUtil]::makeManaged :relfileprefix: ../../../ :mrdocs: Create an object of the (template parameter) `ELEMENT_TYPE` from the specified `args...` arguments, and return a `ManagedPtr` to manage the new object. Use the currently installed default allocator to supply memory for the footprint of the new object but do _not_ implicitly pass the default allocator as the allocator argument to its constructor even if `bslma::UsesBslmaAllocator<ELEMENT_TYPE>::value` is `true`. Note that an allocator may be included in `args`, but see `allocateManaged` for an alternative function that is better suited to creating managed pointers to objects of allocator‐aware type. == Synopsis Declared in `<bslma_managedptr.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class ELEMENT_TYPE, class... ARGS> static xref:BloombergLP/bslma/ManagedPtr-0fa.adoc[ManagedPtr<ELEMENT_TYPE>] makeManaged(ARGS&&... args); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#