BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bsl::List_NodeProctor< VALUE, ALLOCATOR > Class Template Reference

#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 ()
 

Detailed Description

template<class VALUE, class ALLOCATOR>
class bsl::List_NodeProctor< VALUE, ALLOCATOR >

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

Member Typedef Documentation

◆ NodePtr

template<class VALUE , class ALLOCATOR >
typedef AllocTraits::pointer bsl::List_NodeProctor< VALUE, ALLOCATOR >::NodePtr

Constructor & Destructor Documentation

◆ List_NodeProctor()

template<class VALUE , class ALLOCATOR >
bsl::List_NodeProctor< VALUE, ALLOCATOR >::List_NodeProctor ( list< VALUE, ALLOCATOR > *  listPtr,
NodePtr  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.

◆ ~List_NodeProctor()

template<class VALUE , class ALLOCATOR >
bsl::List_NodeProctor< VALUE, ALLOCATOR >::~List_NodeProctor ( )
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.

Member Function Documentation

◆ release()

template<class VALUE , class ALLOCATOR >
void bsl::List_NodeProctor< VALUE, ALLOCATOR >::release ( )
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.


The documentation for this class was generated from the following file: