PR libstdc++/82522 overload map insert functions for rvalues (LWG 2354)
authorJonathan Wakely <jwakely@redhat.com>
Fri, 13 Oct 2017 12:39:32 +0000 (13:39 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 13 Oct 2017 12:39:32 +0000 (13:39 +0100)
commit3b0dd4fea23a695df1fb9a7e5c7017f9d1f1ea84
tree577f22b69c5c79b24129aaf4a95511b3e286e753
parentd1e85aa999ab87009fa02a5261754fbaa69206f2
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/ChangeLog
libstdc++-v3/doc/xml/manual/intro.xml
libstdc++-v3/include/bits/stl_map.h
libstdc++-v3/include/bits/stl_multimap.h
libstdc++-v3/include/bits/unordered_map.h
libstdc++-v3/testsuite/23_containers/map/modifiers/insert/dr2354.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/multimap/modifiers/insert/dr2354.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/unordered_map/insert/dr2354.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/unordered_multimap/insert/dr2354.cc [new file with mode: 0644]