[#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‐place representation constructed from `args`. == Synopsis Declared in `<bslma_sharedptrinplacerep.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... ARGS> explicit SharedPtrInplaceRep( xref:BloombergLP/bslma/Allocator.adoc[Allocator]* basicAllocator, ARGS&&... args); ---- == Description Create a `SharedPtrInplaceRep` object having an "in‐place" instance of the parameterized `TYPE` using the `TYPE` constructor that takes the specified arguments, `args...`. Use the specified `basicAllocator` to supply memory and, upon a call to `disposeRep`, to destroy this representation (and the "in‐place" shared object). If construction of `TYPE` with `args` does not throw, then invocation of this constructor does not throw. == Parameters [cols="1,4"] |=== | Name| Description | *basicAllocator* | allocator used to supply memory for this representation | *args* | arguments forwarded to construct the in‐place `TYPE` instance |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#