Implement LWG 2485
authorVille Voutilainen <ville.voutilainen@gmail.com>
Mon, 30 Oct 2017 14:31:04 +0000 (16:31 +0200)
committerVille Voutilainen <ville@gcc.gnu.org>
Mon, 30 Oct 2017 14:31:04 +0000 (16:31 +0200)
commitccbbf8df05abc41ef86565706976c5ad403291e7
treed9ab403161f04d2276aeaef0e7aa163807d1e15a
parent198a8e3cc5176e9234343060fe95de4035d23ac3
Implement LWG 2485

* include/debug/array (get(const array<_Tp, _Nm>&&)): New.
* include/std/array (get(const array<_Tp, _Nm>&&)): Likewise.
* include/std/tuple (get(const tuple<_Elements...>&&)): Likewise.
(get(const tuple<_Types...>&&)): Likewise.
* include/std/utility
(__pair_get::__const_move_get(const std::pair<_Tp1, _Tp2>&&)):
Likewise.
(get(const std::pair<_Tp1, _Tp2>&&)): Likewise.
(get(const pair<_Tp, _Up>&&)): Likewise.
(get(const pair<_Up, _Tp>&&)): Likewise.
* testsuite/20_util/pair/astuple/get.cc: Add tests for
new overloads.
* testsuite/20_util/pair/astuple/get_by_type.cc: Likewise.
* testsuite/20_util/tuple/element_access/get2.cc: Likewise.
* testsuite/20_util/tuple/element_access/get2_by_type.cc: Likewise.
* testsuite/23_containers/array/tuple_interface/get.cc: Likewise.
* testsuite/23_containers/array/tuple_interface/tuple_element_debug_neg.cc:
Adjust.
* testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
Likewise.

From-SVN: r254222
12 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/include/debug/array
libstdc++-v3/include/std/array
libstdc++-v3/include/std/tuple
libstdc++-v3/include/std/utility
libstdc++-v3/testsuite/20_util/pair/astuple/get.cc
libstdc++-v3/testsuite/20_util/pair/astuple/get_by_type.cc
libstdc++-v3/testsuite/20_util/tuple/element_access/get2.cc
libstdc++-v3/testsuite/20_util/tuple/element_access/get2_by_type.cc
libstdc++-v3/testsuite/23_containers/array/tuple_interface/get.cc
libstdc++-v3/testsuite/23_containers/array/tuple_interface/tuple_element_debug_neg.cc
libstdc++-v3/testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc