next up previous contents
Next: Building a List: Up: Overloaded I/O Methods: Previous: The Overloaded Equal:

The Destructor Call for the DLLIST class:

We start with a call to the destructor for the previous pointer.

    // *************************************** //
    // destructor for CHAR_DLLIST class        //
    // *************************************** //
 
CHAR_DLLIST::~CHAR_DLLIST()
{
  if(head!=NULL){
    delete head;  
    }
}



Jim Peterson
1999-04-22