+2017-11-20 François Dumont <fdumont@gcc.gnu.org>
+
+ PR libstdc++/80761
+ * include/debug/map.h
+ (std::__debug::map<>::insert_return_type): Define using
+ _Node_insert_return.
+ * include/debug/set.h (std::__debug::set<>::insert_return_type):
+ Likewise.
+ * include/debug/unordered_map:
+ (std::__debug::unordered_map<>::insert_return_type): Likewise.
+ * include/debug/unordered_set:
+ (std::__debug::unordered_set<>::insert_return_type): Likewise.
+
2017-12-18 Ville Voutilainen <ville.voutilainen@gmail.com>
PR libstdc++/68430
#if __cplusplus > 201402L
using node_type = typename _Base::node_type;
-
- struct insert_return_type
- {
- bool inserted;
- iterator position;
- node_type node;
- };
+ using insert_return_type = _Node_insert_return<iterator, node_type>;
node_type
extract(const_iterator __position)
{
auto __ret = _Base::insert(std::move(__nh));
iterator __pos = iterator(__ret.position, this);
- return { __ret.inserted, __pos, std::move(__ret.node) };
+ return { __pos, __ret.inserted, std::move(__ret.node) };
}
iterator
#if __cplusplus > 201402L
using node_type = typename _Base::node_type;
-
- struct insert_return_type
- {
- bool inserted;
- iterator position;
- node_type node;
- };
+ using insert_return_type = _Node_insert_return<iterator, node_type>;
node_type
extract(const_iterator __position)
{
auto __ret = _Base::insert(std::move(__nh));
iterator __pos = iterator(__ret.position, this);
- return { __ret.inserted, __pos, std::move(__ret.node) };
+ return { __pos, __ret.inserted, std::move(__ret.node) };
}
iterator
#if __cplusplus > 201402L
using node_type = typename _Base::node_type;
-
- struct insert_return_type
- {
- bool inserted;
- iterator position;
- node_type node;
- };
+ using insert_return_type = _Node_insert_return<iterator, node_type>;
node_type
extract(const_iterator __position)
{
auto __ret = _Base::insert(std::move(__nh));
iterator __pos = iterator(__ret.position, this);
- return { __ret.inserted, __pos, std::move(__ret.node) };
+ return { __pos, __ret.inserted, std::move(__ret.node) };
}
iterator
#if __cplusplus > 201402L
using node_type = typename _Base::node_type;
-
- struct insert_return_type
- {
- bool inserted;
- iterator position;
- node_type node;
- };
+ using insert_return_type = _Node_insert_return<iterator, node_type>;
node_type
extract(const_iterator __position)
{
auto __ret = _Base::insert(std::move(__nh));
iterator __pos = iterator(__ret.position, this);
- return { __ret.inserted, __pos, std::move(__ret.node) };
+ return { __pos, __ret.inserted, std::move(__ret.node) };
}
iterator