BloombergLP::bslma::DeallocateObjectProctor::reset

Reset this proctor to manage a different set of objects.

Synopsis

Declared in <bslma_deallocateobjectproctor.h>

void
reset(
    PtrType p,
    std::size_t n = 1);

Description

Release the managed object and reset this proctor to manage the specified p pointer to optionally specified n objects. If p is null, then the proctor will be disengaged. Note that the previously managed objects are not deallocated.

Parameters

NameDescription
paddress of the objects to manage, or null to disengage
nnumber of objects to manage (1 by default)