unordered containers emplace
Paolo Carlini
paolo.carlini@oracle.com
Fri Dec 9 10:19:00 GMT 2011
On 12/08/2011 10:14 PM, François Dumont wrote:
> So here is the new proposition with additional tests experimenting
> emplace insertion using piecewise_construct.
>
> 2011-12-08 François Dumont <fdumont@gcc.gnu.org>
>
> * include/bits/hashtable.h (_Hashtable<>::emplace,
> _Hashtable<>::emplace_hint): Add.
> * include/debug/unordered_set (unordered_set<>::emplace,
> unordered_set<>::emplace_hint, unordered_multiset<>::emplace,
> unordered_multiset<>::emplace_hint): Add.
> * include/debug/unordered_map (unordered_map<>::emplace,
> unordered_map<>::emplace_hint, unordered_multimap<>::emplace,
> unordered_multimap<>::emplace_hint): Add.
> * testsuite/23_containers/unordered_map/modifiers/emplace.cc:
> New.
> *
> testsuite/23_containers/unordered_multimap/modifiers/emplace.cc:
> New.
> * testsuite/23_containers/unordered_set/modifiers/emplace.cc:
> New.
> *
> testsuite/23_containers/unordered_multiset/modifiers/emplace.cc:
> New.
> * testsuite/util/testsuite_container_traits.h
> (traits_base::has_emplace): Add and defined as std::true_type for
> unordered containers.
> * testsuite/util/exception/safety.h (emplace, emplace_hint):
> Add and
> use them in basic_safety exception test case.
> * doc/xml/manual/status_cxx2011.xml: Update unordered containers
> status.
>
> Tested under linux x86_64 normal and debug mode.
>
> I haven't touch to profile mode for the moment even if I noticed that
> this mode is broken since recent hashtable modifications. I will
> submit an other patch for that.
Please. Should be rather simple, anyway.
> Ok to commit ?
Sure, thanks!
Paolo.
More information about the Libstdc++
mailing list