[#bsl-shared_ptr-0a-createInplace-00]
= xref:bsl.adoc[bsl]::xref:bsl/shared_ptr-0a.adoc[shared&lowbar;ptr]::createInplace
:relfileprefix: ../../
:mrdocs:

`createInplace` overloads

== Synopses

Declared in `&lt;bslstl&lowbar;sharedptr&period;h&gt;`

Create the managed object in&hyphen;place using the default allocator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:bsl/shared_ptr-0a/createInplace-07.adoc[createInplace]();
----

[.small]#xref:bsl/shared_ptr-0a/createInplace-07.adoc[_» more&period;&period;&period;_]#

Create the managed object in&hyphen;place using `basicAllocator`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class&period;&period;&period; ARGS&gt;
void
xref:bsl/shared_ptr-0a/createInplace-04.adoc[createInplace](
    xref:BloombergLP/bslma/Allocator.adoc[BloombergLP::bslma::Allocator]* basicAllocator,
    ARGS&&&period;&period;&period; args);
----

[.small]#xref:bsl/shared_ptr-0a/createInplace-04.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *basicAllocator*
| allocator used to supply memory
| *args*
| constructor arguments forwarded to the new object
|===


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