Remove unordered containers iterators default initialization
François Dumont
frs.dumont@gmail.com
Mon Nov 25 21:03:00 GMT 2013
Hi
Following N3644 discussion thread here is a patch proposal to
remove default zero-initialization of unordered containers iterator. I
also took the time to remove default zero-init of nodes _M_nxt pointer.
2013-11-25 François Dumont <fdumont@gcc.gnu.org>
* include/bits/hashtable_policy.h (_Hash_node_base): Default
default constructor.
(_Node_iterator): Likewise.
(_Node_const_iterator): Likewise.
* include/bits/hashtable.h: Adapt.
Tested under Linux x86_64.
Ok to commit ?
François
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unordered_iterators.patch
Type: text/x-patch
Size: 3230 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20131125/acb76ab7/attachment.bin>
More information about the Libstdc++
mailing list