2019-05-14 Jonathan Wakely <jwakely@redhat.com>
+ * include/bits/stl_tree.h (_Rb_tree::erase(const Key*, const Key*)):
+ Remove unused, non-standard function.
+
* include/bits/regex.h (match_results::max_size()): Adjust return
value to account for prefix/suffix/unmatched subs.
(match_results::_M_resize(unsigned int)): Use _Base_type::assign to
_M_erase_aux(__position);
}
#endif
+
size_type
erase(const key_type& __x);
erase(const_iterator __first, const_iterator __last)
{ _M_erase_aux(__first, __last); }
#endif
- void
- erase(const key_type* __first, const key_type* __last);
void
clear() _GLIBCXX_NOEXCEPT
return __old_size - size();
}
- template<typename _Key, typename _Val, typename _KeyOfValue,
- typename _Compare, typename _Alloc>
- void
- _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
- erase(const _Key* __first, const _Key* __last)
- {
- while (__first != __last)
- erase(*__first++);
- }
-
template<typename _Key, typename _Val, typename _KeyOfValue,
typename _Compare, typename _Alloc>
typename _Rb_tree<_Key, _Val, _KeyOfValue,