bsl::List_NodeProctor::List_NodeProctor

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

NameDescription
listPtrlist whose allocator frees the node
nodePtrnode to free unless release is called