[#BloombergLP-bslma-SharedPtrInplaceRep-2constructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/SharedPtrInplaceRep.adoc[SharedPtrInplaceRep]::SharedPtrInplaceRep
:relfileprefix: ../../../
:mrdocs:

Create an in&hyphen;place representation constructed from `args`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class&period;&period;&period; ARGS&gt;
explicit
SharedPtrInplaceRep(
    xref:BloombergLP/bslma/Allocator.adoc[Allocator]* basicAllocator,
    ARGS&&&period;&period;&period; args);
----

== Description

Create a `SharedPtrInplaceRep` object having an &quot;in&hyphen;place&quot; instance of the parameterized `TYPE` using the `TYPE` constructor that takes the specified arguments, `args&period;&period;&period;`&period; Use the specified `basicAllocator` to supply memory and, upon a call to `disposeRep`, to destroy this representation (and the &quot;in&hyphen;place&quot; shared object)&period; If construction of `TYPE` with `args` does not throw, then invocation of this constructor does not throw&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *basicAllocator*
| allocator used to supply memory for this representation
| *args*
| arguments forwarded to construct the in&hyphen;place `TYPE` instance
|===


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