diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2017-11-03 11:04:45 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2017-11-03 11:04:45 +0000 |
commit | 97695d99b0caa475df0a7b569fee6d3bef35b4d7 (patch) | |
tree | 20782be3a3729dba90db28e1a2ba4ed4c4137549 /libstdc++-v3 | |
parent | b0c7ddf816a38f18a58a3e1b86b78b5bbbba03c1 (diff) | |
download | gcc-97695d99b0caa475df0a7b569fee6d3bef35b4d7.zip gcc-97695d99b0caa475df0a7b569fee6d3bef35b4d7.tar.gz gcc-97695d99b0caa475df0a7b569fee6d3bef35b4d7.tar.bz2 |
Remove _Node_insert_return::get() member functions (P0508R0)
* include/bits/node_handle.h (_Node_insert_return::get): Remove, as
per P0508R0.
From-SVN: r254368
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/node_handle.h | 48 |
2 files changed, 5 insertions, 48 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 3ca18b2..8cf1818 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2017-11-03 Jonathan Wakely <jwakely@redhat.com> + + * include/bits/node_handle.h (_Node_insert_return::get): Remove, as + per P0508R0. + 2017-11-01 François Dumont <fdumont@gcc.gnu.org> * python/libstdcxx/v6/printers.py (StdExpAnyPrinter.__init__): Strip diff --git a/libstdc++-v3/include/bits/node_handle.h b/libstdc++-v3/include/bits/node_handle.h index f93bfd7..4a83063 100644 --- a/libstdc++-v3/include/bits/node_handle.h +++ b/libstdc++-v3/include/bits/node_handle.h @@ -282,54 +282,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _Iterator position = _Iterator(); bool inserted = false; _NodeHandle node; - - template<size_t _Idx> - decltype(auto) get() & - { - static_assert(_Idx < 3); - if constexpr (_Idx == 0) - return inserted; - else if constexpr (_Idx == 1) - return position; - else if constexpr (_Idx == 2) - return node; - } - - template<size_t _Idx> - decltype(auto) get() const & - { - static_assert(_Idx < 3); - if constexpr (_Idx == 0) - return inserted; - else if constexpr (_Idx == 1) - return position; - else if constexpr (_Idx == 2) - return node; - } - - template<size_t _Idx> - decltype(auto) get() && - { - static_assert(_Idx < 3); - if constexpr (_Idx == 0) - return std::move(inserted); - else if constexpr (_Idx == 1) - return std::move(position); - else if constexpr (_Idx == 2) - return std::move(node); - } - - template<size_t _Idx> - decltype(auto) get() const && - { - static_assert(_Idx < 3); - if constexpr (_Idx == 0) - return std::move(inserted); - else if constexpr (_Idx == 1) - return std::move(position); - else if constexpr (_Idx == 2) - return std::move(node); - } }; _GLIBCXX_END_NAMESPACE_VERSION |