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

Name

Description

NodePtr

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

Member Functions

Name

Description

List_NodeProctor [constructor]

Create a node proctor object that will use the specified list listPtr to free the specified nodePtr. The behavior is undefined unless nodePtr was allocated by the allocator of *listPtr.

~List_NodeProctor [destructor]

Destroy this node proctor, and free the node it contains unless the release method has been called before. Note that the d_value field of the node is not destroyed.

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.

Created with MrDocs