mirror of git://gcc.gnu.org/git/gcc.git
Remove _Node_insert_return::get() member functions (P0508R0)
* include/bits/node_handle.h (_Node_insert_return::get): Remove, as per P0508R0. From-SVN: r254368
This commit is contained in:
parent
b0c7ddf816
commit
97695d99b0
|
|
@ -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>
|
2017-11-01 François Dumont <fdumont@gcc.gnu.org>
|
||||||
|
|
||||||
* python/libstdcxx/v6/printers.py (StdExpAnyPrinter.__init__): Strip
|
* python/libstdcxx/v6/printers.py (StdExpAnyPrinter.__init__): Strip
|
||||||
|
|
|
||||||
|
|
@ -282,54 +282,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
||||||
_Iterator position = _Iterator();
|
_Iterator position = _Iterator();
|
||||||
bool inserted = false;
|
bool inserted = false;
|
||||||
_NodeHandle node;
|
_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
|
_GLIBCXX_END_NAMESPACE_VERSION
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue