[SOLVED] Re: About erasing iterators (ohierarchyholder.cxx, package module)

julien2412 serval2412 at yahoo.fr
Wed Aug 28 03:57:15 PDT 2013


Jan Holesovsky wrote
> ...
> If I am not mistaken, unordered_map is a _Hashtable, with end() defined
> as const_iterator(nullptr), so it is constant, and your change was
> actually fine.  Then again, I am no C++ expert, so probably better to be
> safe, and just check against m_aChildren.end() ;-) - you don't save much
> anyway, .end() is cheap.

Already done (see my previous comment) then:-)

Thank you for your help Jan.

Julien



--
View this message in context: http://nabble.documentfoundation.org/About-erasing-iterators-ohierarchyholder-cxx-package-module-tp4071746p4072012.html
Sent from the Dev mailing list archive at Nabble.com.


More information about the LibreOffice mailing list