bsl::List_NodeProctor

This class provides a proctor to free a node containing an uninitialized VALUE object in the event that an exception is thrown.

Synopsis

Declared in <bslstl_list.h>

template<
    class VALUE,
    class ALLOCATOR>
class List_NodeProctor;

Type Aliases

NameDescription
NodePtr Pointer to a list node allocated by this proctor's list.

Member Functions

NameDescription
List_NodeProctor [constructor]Create a node proctor that frees nodePtr using listPtr on destruction.
~List_NodeProctor [destructor]Destroy this proctor and free its node unless release was called.
release Detach the node contained in this proctor from the proctor. After calling this release method, the proctor no longer frees any node upon its destruction.