This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR 44436 Associative containers emplace/emplace_hint
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: François Dumont <frs dot dumont at gmail dot com>
- Cc: "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 14 Sep 2012 22:43:36 +0200
- Subject: Re: PR 44436 Associative containers emplace/emplace_hint
- References: <50538E96.8080907@gmail.com>
On 09/14/2012 10:07 PM, François Dumont wrote:
Hi
Here is a patch to add emplace/emplace_hint on associative
containers in C++11 mode.
Ah, excellent! I will review the patch over the next couple of days.
I did some refactoring to use as much of the same code between
insert and emplace methods..
I have also change map::operator[] to now use the emplace logic in
C++11 so that we only need the value type to be default constructible.
About this, can I ask you to likewise add completely similar testcases too?
Thanks!
Paolo.