Create a destructor proctor that conditionally manages an object.

Synopsis

Declared in <bslma_destructorproctor.h>

explicit
DestructorProctor(TYPE* object);

Description

Create a destructor proctor that conditionally manages the specified object (if non‐zero) by invoking the destructor of the object managed by this proctor (if not released ‐‐ see release) upon destruction.

Parameters

Name

Description

object

Object to manage, or 0 for none.

Created with MrDocs