Make iterator comparisons trivial

This commit is contained in:
Ion Gaztañaga
2026-06-07 21:30:02 +02:00
parent 1677c41deb
commit 9d03dbaa1d
@@ -749,12 +749,12 @@ public:
return tmp;
}
friend bool operator==(const nest_iterator& x, const nest_iterator& y) BOOST_NOEXCEPT
BOOST_CONTAINER_FORCEINLINE friend bool operator==(const nest_iterator& x, const nest_iterator& y) BOOST_NOEXCEPT
{
return x.pbb == y.pbb && x.n == y.n;
}
friend bool operator!=(const nest_iterator& x, const nest_iterator& y) BOOST_NOEXCEPT
BOOST_CONTAINER_FORCEINLINE friend bool operator!=(const nest_iterator& x, const nest_iterator& y) BOOST_NOEXCEPT
{
return !(x == y);
}