| | | | | |

List Public Interface (cont.)

  • Proper type
  • TList  ();                                  // default constructor
    ~TList ();                                  // destructor
    TList  (const TList<T>& L);                 // copy constructor
    TList<T>& operator =  (const TList<T>& L);  // assignment operator
    
  • Terminology support
  • // scope TList<T>:: type definitions to facilitate clients
    typedef T                 value_type;
    typedef TListIterator<T>  Iterator;
    

| | Top of Page | 8. A Generic List Class and Linked Lists - 6 of 19