   Can someone please explain this?
  I was reading the Enguinity article, but i got stuck at one part.for(std::list::iterator it=deadObjects.begin();  it!=deadObjects.end(); it++)  this part i need explainedstd::list::iterator it=deadObjects.begin();  Thanks! 
  deadObjects.begin() is probably a pointer to the first object in a list of objects ;  STL iterators are just like pointers which are used to iterate through STL containers much like you can use a pointer to iterate through an array ;  Others have pretty much answered your question, or at least pointed you to where you need to look... STL List containers. In the code fragment, DeadObjects is alist ANGLE_BRACKET some_objects ANGLE_BRACKET container, where some_objects is the type of objects defined to be kept in the list. List containers contain two methods being used here: list.begin(), which returns a list::iterator (a pointer, basically) to the first item in the list, and list.end() which returns an iterator to one beyond the end of the list. That is so that you can construct loops like those shown that iterate through each item in the list.edit: trying to make angle brackets show up   (Sorry about the ANGLE_BRACKETS...)[edited by - algol on March 24, 2004 9:36:38 AM] [edited by - algol on March 24, 2004 9:38:26 AM] [edited by - algol on March 24, 2004 9:40:06 AM];  In C# it would beforeach(jobclass job in deadObjects){    job.dosomething();}  A std::list is comparable to an arraylist in C#, except that because of C++ you have to do some things yourself, like get begin and end, while C# supports lists with foreach() ;quote:Original post by Fidelio66  In C# it would beforeach(jobclass job in deadObjects){    job.dosomething();}   The STL provides std::foreach in the <algorithm> header. (Just FYI.) Of course, it''s even easier in Python:for obj in deadObjects:  obj.dosomething()  Best of all, it''s trivial to create your own iterators (simply provide next() in the iterator, and __iter__() in the sequence to be iterated). 