Out‐of‐place concrete implementation of the SharedPtrRep protocol.
Synopsis
Declared in <bslstl_sharedptrallocateoutofplacerep.h>
template<
class TYPE,
class DELETER,
class ALLOCATOR>
class SharedPtrAllocateOutofplaceRep
: public BloombergLP::bslma::SharedPtrRep
Description
This class provides a concrete implementation of the SharedPtrRep protocol for out‐of‐place instances of the parameterized TYPE. Upon destruction of this object, the parameterized DELETER type is invoked on the pointer to the shared object.
Base Classes
Name |
Description |
Partially implemented shared pointer representation protocol. |
Member Functions
Name |
Description |
Atomically acquire a shared reference to the shared object referred to by this representation. The behavior is undefined unless |
|
Atomically acquire a weak reference to the shared object. |
|
|
Destroy the object referred to by this representation. |
|
Destroy this representation and deallocate its memory. |
|
Return a pointer to the stored deleter if it matches |
Return |
|
Atomically increment the number of shared references. |
|
Return a "snapshot" of the current number of shared references to the shared object referred to by this representation object. |
|
Return a "snapshot" of the current number of weak references to the shared object referred to by this representation object. |
|
|
Return the (untyped) address of the modifiable shared object to which this object refers. |
Return the address of the modifiable shared object to which this object refers. |
|
Atomically release a shared reference to the shared object. |
|
Atomically release a weak reference to the shared object. |
|
Reset the shared and weak reference counts to the specified values. |
|
Try to atomically acquire a shared reference to the shared object. |
Static Member Functions
Name |
Description |
Create a new out‐of‐place shared‐pointer representation. |
|
Release the shared reference held by the specified representation. |
|
Deleter that has no effect when converting a null shared pointer. |
Created with MrDocs