Hey all,
I have a list of classes, and two iterators, it_cur and it_nxt. It_cur points to some element, and I need it_nxt to point to the element after it_cur. Is there any simple built in way to do this? If not, would using the following function be alright?
Or maybe just it_nxt = it_cur + sizeof(TheClass)?Code:list<TheClass>::iterator getNext(list<TheClass>::iterator it_cur) { return ++it_cur; }
Cheers,
Gabe