Remove _Node_insert_return::get() member functions (P0508R0)
authorJonathan Wakely <jwakely@redhat.com>
Fri, 3 Nov 2017 11:04:45 +0000 (11:04 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 3 Nov 2017 11:04:45 +0000 (11:04 +0000)
* include/bits/node_handle.h (_Node_insert_return::get): Remove, as
per P0508R0.

From-SVN: r254368

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/node_handle.h

index 3ca18b2..8cf1818 100644 (file)
@@ -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
index f93bfd7..4a83063 100644 (file)
@@ -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