[#BloombergLP-bslma-ManagedPtrUtil-allocateManaged-06]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/ManagedPtrUtil.adoc[ManagedPtrUtil]::allocateManaged
:relfileprefix: ../../../
:mrdocs:

Same as the overload taking `bslma&colon;&colon;Allocator &ast;`, but accepts a class&hyphen;type `allocator`&period;

== Synopsis

Declared in `&lt;bslma&lowbar;managedptr&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class ELEMENT&lowbar;TYPE,
    class ALLOCATOR,
    class&period;&period;&period; ARGS&gt;
static
xref:BloombergLP/bslma/ManagedPtr-0fa.adoc[ManagedPtr&lt;ELEMENT&lowbar;TYPE&gt;]
allocateManaged(
    ALLOCATOR const& allocator,
    ARGS&&&period;&period;&period; args)
requires bsl&colon;&colon;is&lowbar;class&lt;ALLOCATOR&gt;&colon;&colon;value;
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
