* include/debug/functions.h
(__foreign_iterator_aux3(const _Safe_iterator<>&, const _InputeIter&,
const _InputIter&, __true_type)): Use empty() rather than begin() ==
end().
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@264699
138bc75d-0d04-0410-961f-
82ee72b054a4
+2018-09-28 François Dumont <fdumont@gcc.gnu.org>
+
+ * include/debug/functions.h
+ (__foreign_iterator_aux3(const _Safe_iterator<>&, const _InputeIter&,
+ const _InputIter&, __true_type)): Use empty() rather than begin() ==
+ end().
+
2018-09-25 Mike Crowe <mac@mcrowe.com>
* include/std/condition_variable (condition_variable::wait_for): Use
{
if (__other == __other_end)
return true; // inserting nothing is safe even if not foreign iters
- if (__it._M_get_sequence()->begin() == __it._M_get_sequence()->end())
+ if (__it._M_get_sequence()->empty())
return true; // can't be self-inserting if self is empty
return __foreign_iterator_aux4(__it, std::__addressof(*__other));
}