This class provides a specialized proctor object that, upon destruction and unless the release method has been called, destroys the elements in a segment of an array of parameterized type OBJECT_TYPE. The elements destroyed are delimited by the "guarded" range [ begin(), end() )].
Synopsis
Declared in <bslalg_autoarraydestructor.h>
template<
class OBJECT_TYPE,
class ALLOCATOR = bsl::allocator<OBJECT_TYPE>>
class AutoArrayDestructor;
Type Aliases
Name |
Description |
Standard signed difference type used by pointer arithmetic. |
Member Functions
Name |
Description |
|
Create an array exception guard object for the sequence of elements of the parameterized |
|
Call the destructor on each of the elements of the parameterized |
Move the begin pointer by the specified |
|
Move the end pointer by the specified |
|
Set the range of elements guarded by this object to be empty. Note that |
Created with MrDocs