title: Using CLists in c++ -Could not understand
body: <p>I searched for a sample program to work on with the CList.But i could not find it.I got some basic definitions about the CLists(template class that behaves similar to the doubly linked lists).. and is used to store the aggregate data..The 1st argument is stored internally by the list..I could not see what elements are stored in the list and how to retrieve it.</p>
  
  <pre><code>RsData Data; //object of class RsData
  RsEvent* Event;//pointer to class RsEvent
  CList&lt;Event*,Event*&gt;  EventQueue;
  Data.EventQueue.RemoveAll(); 
  //removing the attributes and methods of the class RsEvent stored in the list.
  </code></pre>