C++ Logo


Advanced search

Re: [SG10] Updates to SD-6

From: Jonathan Wakely <cxx_at_[hidden]>
Date: Thu, 13 Aug 2015 10:06:26 +0100
On 6 January 2015 at 17:29, Ed Smith-Rowland wrote:
> N4279 - Improved insertion interface for unique-key maps
> __cpp_lib_map_insertion 201411
> __cpp_lib_unordered_map_insertion 201411

Now that libstdc++ supports these features I was about to add the
macros, and realised that N4440 has __cpp_lib_map_try_emplace in
addition to __cpp_lib_map_insertion. IMHO that makes the latter rather

Maps have supported insertion since 1998, so "map insertion" doesn't
say anything about this feature. If we have a separate macro for
try_emplace then we should have map_insert_or_assign, surely?

Or just combine them both under map_insertion, without a separate
macro for try_emplace.

Received on 2015-08-13 11:06:47