Index:
[thread]
[date]
[subject]
[author]
From: Luke Palmer <lop@duke.edu>
To :
Date: Sat, 13 Feb 1999 21:45:50 -0500
stl iterators
allright, i'm trying to figure out some weird stuff here.
say i have a loop declared as below. myIterator is an appropriate type to
use on myList (an slist). the list contains appointments. what i am trying
to do is access member functions of the appointments to make sure there are
no scheduling conflicts (make sure the ending time of one appointment is not
greater than the start time of the one after it). i don't really know how
to use STL slists- will this work?
for (myIterator = myList.begin(); myIterator != myList.end(); myIterator++)
{
if (this->getEndTime() > (this+1)->getStartTime()) return false;
}
please let me know if you have any comments or have a better idea. thanks!
-luke
Index:
[thread]
[date]
[subject]
[author]