debug safe iterator patch
François Dumont
frs.dumont@gmail.com
Sun Feb 5 17:29:00 GMT 2012
Hi
Here is a small performance patch for the debug mode. Nothing
urgent, just tell me if I can apply it on trunk at the moment.
2012-02-05 François Dumont <fdumont@gcc.gnu.org>
* include/debug/safe_iterator.h
(_Safe_iterator::_M_before_dereferenceable): Avoid the expensive
creation of a _Safe_iterator instance to do the check.
Tested under x86_64 linux debug mode.
François
-------------- next part --------------
A non-text attachment was scrubbed...
Name: safe_iterator.patch
Type: text/x-patch
Size: 577 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20120205/2bda3179/attachment.bin>
More information about the Libstdc++
mailing list