Create a node proctor that frees nodePtr using listPtr on destruction.

Synopsis

Declared in <bslstl_list.h>

List_NodeProctor(
    list<VALUE, ALLOCATOR>* listPtr,
    NodePtr nodePtr);

Description

The behavior is undefined unless nodePtr was allocated by the allocator of *listPtr.

Parameters

Name

Description

listPtr

list whose allocator frees the node

nodePtr

node to free unless release is called

Created with MrDocs