BloombergLP::bslma::AutoDeallocator::setLength

Set the (signed) length of the managed memory-block sequence.

Synopsis

Declared in <bslma_autodeallocator.h>

void
setLength(int length);

Description

Set the (signed) length of the sequence of memory blocks managed by this range proctor to the specified length. The behavior is undefined unless the origin of this range proctor is non-zero.

Parameters

NameDescription
lengthThe signed length of the managed memory block sequence.