Fix erasure goofs.
authorEdward Smith-Rowland <3dw4rd@verizon.net>
Thu, 29 Nov 2018 13:43:55 +0000 (13:43 +0000)
committerEdward Smith-Rowland <emsr@gcc.gnu.org>
Thu, 29 Nov 2018 13:43:55 +0000 (13:43 +0000)
commita62b871d65a5c7ce3114ac095fa5490050f2037d
tree3d5aa40f2cd2506559da59dbbad9bce72a825f2e
parent154fb72b6d8e35b1a97fd665dd43c4f215aea1b1
Fix erasure goofs.

2018-11-29  Edward Smith-Rowland  <3dw4rd@verizon.net>

Fix erasure goofs.
* include/experimental/deque: Make inline.
* include/std/deque: Include bits/stl_algo.h.
(erase, erase_if): Make inline.
* include/std/string: Include bits/stl_algo.h.
* include/std/unordered_set: Add erase, erase_if!
* include/std/vector: Include bits/stl_algo.h.
* testsuite/21_strings/basic_string/erasure.cc:
Add { dg-options "-std=gnu++2a" }.
* testsuite/23_containers/deque/erasure.cc: Ditto.
* testsuite/23_containers/forward_list/erasure.cc: Ditto.
* testsuite/23_containers/list/erasure.cc: Ditto.
* testsuite/23_containers/map/erasure.cc: Ditto.
* testsuite/23_containers/set/erasure.cc: Ditto.
* testsuite/23_containers/unordered_map/erasure.cc: Ditto.
* testsuite/23_containers/unordered_set/erasure.cc: Ditto.
* testsuite/23_containers/vector/erasure.cc: Ditto.

From-SVN: r266616
15 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/include/experimental/deque
libstdc++-v3/include/std/deque
libstdc++-v3/include/std/string
libstdc++-v3/include/std/unordered_set
libstdc++-v3/include/std/vector
libstdc++-v3/testsuite/21_strings/basic_string/erasure.cc
libstdc++-v3/testsuite/23_containers/deque/erasure.cc
libstdc++-v3/testsuite/23_containers/forward_list/erasure.cc
libstdc++-v3/testsuite/23_containers/list/erasure.cc
libstdc++-v3/testsuite/23_containers/map/erasure.cc
libstdc++-v3/testsuite/23_containers/set/erasure.cc
libstdc++-v3/testsuite/23_containers/unordered_map/erasure.cc
libstdc++-v3/testsuite/23_containers/unordered_set/erasure.cc
libstdc++-v3/testsuite/23_containers/vector/erasure.cc