Commit 97695d99 by Jonathan Wakely Committed by Jonathan Wakely

Remove _Node_insert_return::get() member functions (P0508R0)

	* include/bits/node_handle.h (_Node_insert_return::get): Remove, as
	per P0508R0.

From-SVN: r254368
parent b0c7ddf8
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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment