This complex constrained in‐core value‐semantic class holds the information necessary for ManagedPtr to correctly manage its underlying object, namely the addresses of object and factory, and the deleter function, optionally supplied through the constructors or through the set method. This information is stored in a sub‐structure to allow the compiler to copy it more efficiently.
Synopsis
Declared in <bslma_managedptrdeleter.h>
class ManagedPtrDeleter;
Description
See the for information on the class attributes. Note that the class invariants are identically the constraints on the individual attributes.
This class: * supports a complete set of value‐semantic operations * is exception‐safe * is alias‐safe * is const thread‐safe For terminology see bsldoc_glossary.
Type Aliases
Name |
Description |
Deleter function prototype used to destroy the managed pointer. |
Member Functions
Name |
Description |
|
Constructors |
Reset this |
|
Invoke the deleter object. The behavior is undefined unless |
|
Return the deleter function associated with this deleter. |
|
Return a pointer to the factory instance associated with this deleter. |
|
Return a pointer to the managed object associated with this deleter. |
|
Set this |
Non-Member Functions
Name |
Description |
Return |
|
Return |
Created with MrDocs