This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PR 44436 Associative containers emplace/emplace_hint


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]