| | | | | |

List Public Interface (cont.)

  • Locating places on the list
  • Iterator Begin  () const;  // return iterator at first element
    Iterator End    () const;  // return iterator past the end
    Iterator rBegin () const;  // return iterator at last element
    Iterator rEnd   () const;  // return iterator before the beginning
  • Accessing values on the list
  • T& Front ();  // return reference to element at front of list
    T& Back  ();  // return reference to element at back of list
  • Non-member operators
  • bool operator ==      (const TList<T>& L1, const TList<T>& L2);
    bool operator !=      (const TList<T>& L1, const TList<T>& L2);
    ostream& operator << (ostream& os, const TList<T>& L);

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