unordered set design modification
François Dumont
frs.dumont@gmail.com
Sat Oct 20 21:07:00 GMT 2012
Hi
Following remarks in PR 53067 regarding design of unordered
containers here is a patch to prefer aggregation to inheritance with
_Hashtable. I hope it is what you had in mind Jonathan. If so I will do
the same for unordered_[multi]map.
2012-10-20 François Dumont <fdumont@gcc.gnu.org>
* include/bits/unordered_set.h (unordered_set<>): Prefer
aggregation to inheritance with _Hashtable.
(unordered_multiset<>): Likewise.
* include/debug/unordered_set (operator==): Adapt.
* include/profile/unordered_set (operator==): Adapt.
* include/profile/map.h (map::emplace_hint): Remove invalid
parenthesis.
I have also put a fix in profile/map.h even if it is unrelated to
this evolution. Should I commit it outside this patch ?
Tested under Linux x86_64.
Ok to commit ?
François
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unordered.patch
Type: text/x-patch
Size: 48279 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20121020/56bc7744/attachment.bin>
More information about the Libstdc++
mailing list