how iterate retrograde by an stl list?


i'm minute cross-platform formula between windows mac.



if list::end() "returns an iterator addresses plcae unbroken final component list" checked traversing list forward, best proceed camber backwards?



this formula workson mac nonetheless windows (can't decrement over initial element):



list<dvfgfxobj*>::iterator iter = m_objs.end();
for (iter--; iter!=m_objs.end(); iter--)// collision detected iterator spin ?
{
}


this works windows:



list<dvfgfxobj*>::iterator iter = m_objs.end();
do{
iter--;
} while (*iter != *m_objs.begin());


is there another proceed camber behind implemented loop?



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?