From 3b0dd4fea23a695df1fb9a7e5c7017f9d1f1ea84 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Fri, 13 Oct 2017 13:39:32 +0100 Subject: PR libstdc++/82522 overload map insert functions for rvalues (LWG 2354) PR libstdc++/82522 * doc/xml/manual/intro.xml: Document LWG 2354 changes. * include/bits/stl_map.h (map::insert(value_type&&)) (map::insert(const_iterator, value_type&&)): Add overload for rvalues. * include/bits/stl_multimap.h (multimap::insert(value_type&&)) (multimap::insert(const_iterator, value_type&&)): Likewise. * include/bits/unordered_map.h (unordered_map::insert(value_type&&)) (unordered_map::insert(const_iterator, value_type&&)) (unordered_multimap::insert(value_type&&)) (unordered_multimap::insert(const_iterator, value_type&&)): Likewise. * testsuite/23_containers/map/modifiers/insert/dr2354.cc: New test. * testsuite/23_containers/multimap/modifiers/insert/dr2354.cc: New test. * testsuite/23_containers/unordered_map/insert/dr2354.cc: New test. * testsuite/23_containers/unordered_multimap/insert/dr2354.cc: New test. From-SVN: r253725 --- libstdc++-v3/doc/xml/manual/intro.xml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libstdc++-v3/doc') diff --git a/libstdc++-v3/doc/xml/manual/intro.xml b/libstdc++-v3/doc/xml/manual/intro.xml index 782817e..3b243e5 100644 --- a/libstdc++-v3/doc/xml/manual/intro.xml +++ b/libstdc++-v3/doc/xml/manual/intro.xml @@ -988,6 +988,12 @@ requirements of the license of GCC. Add deleted constructors. + 2332: + Unnecessary copying when inserting into maps with braced-init syntax + + Add overloads of insert taking value_type&& rvalues. + + 2399: shared_ptr's constructor from unique_ptr should be constrained -- cgit v1.1