Utility providing a no‐op deleter for managed pointers to stack objects.

Synopsis

Declared in <bslma_managedptr.h>

struct ManagedPtrUtil;

Description

This utility class provides a general no‐op deleter, which is useful when creating managed pointers to stack‐allocated objects.

Static Member Functions

Name

Description

allocateManaged

allocateManaged overloads

allocatorDeleter

Destroy and deallocate object using allocator.

makeManaged

Create and return a ManagedPtr to a new ELEMENT_TYPE object.

noOpDeleter

Deleter function that does nothing.

Created with MrDocs