BloombergLP::bslma::SharedPtrInplaceRep::SharedPtrInplaceRep

Create an in-place representation constructed from args.

Synopsis

Declared in <bslma_sharedptrinplacerep.h>

template<class... ARGS>
explicit
SharedPtrInplaceRep(
    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

NameDescription
basicAllocatorallocator used to supply memory for this representation
argsarguments forwarded to construct the in-place TYPE instance