Re: [v3 PATCH] Implement N4279, Improved insertion interface for unique-key maps.

2015-08-08 Thread Jonathan Wakely
On 07/08/15 09:36 +0100, Jonathan Wakely wrote: On 21/07/15 00:49 +0300, Ville Voutilainen wrote: + template + pair Indent everything after 'template<...>' please. + try_emplace(const key_type& __k, _Args&&... __args) + { + iterator __i = lower_bound(__k); + if

Re: [v3 PATCH] Implement N4279, Improved insertion interface for unique-key maps.

2015-08-07 Thread Jonathan Wakely
On 21/07/15 00:49 +0300, Ville Voutilainen wrote: Tested on Linux-PPC64. 2015-07-21 Ville Voutilainen Implement N4279, Improved insertion interface for unique-key maps. * include/bits/stl_map.h (try_emplace, insert_or_assign): New. * include/bits/stl_tree.h (_M_get_insert_unique_pos,