|
BDE 4.14.0 Production release
|
#include <bslstl_list.h>
Public Types | |
| typedef AllocTraits::pointer | NodePtr |
Public Member Functions | |
| List_NodeProctor (list< VALUE, ALLOCATOR > *listPtr, NodePtr nodePtr) | |
| ~List_NodeProctor () | |
| void | release () |
This class provides a proctor to free a node containing an uninitialized VALUE object in the event that an exception is thrown.
See bslstl_list
| typedef AllocTraits::pointer bsl::List_NodeProctor< VALUE, ALLOCATOR >::NodePtr |
|
inline |
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.
|
inline |
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.
|
inline |
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.