debug safe iterator patch
François Dumont
frs.dumont@gmail.com
Mon Feb 6 20:22:00 GMT 2012
Attached patch applied
2012-02-06 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.
François
On 02/05/2012 06:30 PM, Paolo Carlini wrote:
> On 02/05/2012 06:29 PM, François Dumont wrote:
>> 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.
> It impacts only debug-mode, thus it's pretty safe. If you tested it
> check-debug I guess you can commit it to mainline even now.
>
> Thanks,
> Paolo.
>
-------------- 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/20120206/43e7b504/attachment.bin>
More information about the Libstdc++
mailing list