cpp header organizer

Felix Berger bflat1 at gmx.net
Thu Jan 13 16:16:13 UTC 2005


On Thursday 13 January 2005 15:51, Matt Rogers wrote:
> QValueList would behave the same way wrt to the iterators becoming invalid
> after the list goes out of scope IIRC

At least a const_iterator only stores a reference to the nodes used, as far as 
I could see, it holds no reference of the list and the list doesn't know 
anything about the iterator as well.

const_iterator begin() const { return const_iterator( sh->node->next ); }

Of course it's true that the iterator becomes invalid when all lists that 
share the internal list are deleted. But this wouldn't be the case here, 
since one list is a member of BaseClausAST.

Felix

-- 
Use Debian GNU/Linux!
http://www.felix.beldesign.de/




More information about the KDevelop-devel mailing list