Create an in‐place representation with uninitialized storage for TYPE.
Synopsis
Declared in <bslstl_sharedptrallocateinplacerep.h>
static
SharedPtrAllocateInplaceRep<TYPE, ALLOCATOR>*
makeRep(ReboundAllocator basicAllocator);
Description
Create a SharedPtrAllocateInplaceRep object having storage for an in‐place uninitialized object of (template parameter) TYPE, and return its address. Use the specified basicAllocator to supply memory and, upon a call to disposeRep, to destroy this representation (and the in‐place shared object). Note that the function members ptr and originalPtr will return the address of an uninitialized object. This object should be explicitly initialized by the caller, and it is undefined behavior to call disposeRep until this object has been successfully constructed.
Return Value
address of the newly created representation
Parameters
Name |
Description |
basicAllocator |
allocator used to supply memory for this representation |
Created with MrDocs