Add operator!

This commit is contained in:
Ion Gaztañaga
2022-06-13 00:41:49 +02:00
parent 3c5c8cec3f
commit 466ff07d15

View File

@ -93,6 +93,9 @@ class slist_iterator
BOOST_INTRUSIVE_FORCEINLINE const_value_traits_ptr get_value_traits() const BOOST_INTRUSIVE_FORCEINLINE const_value_traits_ptr get_value_traits() const
{ return members_.get_ptr(); } { return members_.get_ptr(); }
BOOST_INTRUSIVE_FORCEINLINE bool operator!() const
{ return !members_.nodeptr_; }
public: public:
BOOST_INTRUSIVE_FORCEINLINE slist_iterator& operator++() BOOST_INTRUSIVE_FORCEINLINE slist_iterator& operator++()
{ {
@ -111,7 +114,7 @@ class slist_iterator
{ return l.pointed_node() == r.pointed_node(); } { return l.pointed_node() == r.pointed_node(); }
BOOST_INTRUSIVE_FORCEINLINE friend bool operator!= (const slist_iterator& l, const slist_iterator& r) BOOST_INTRUSIVE_FORCEINLINE friend bool operator!= (const slist_iterator& l, const slist_iterator& r)
{ return !(l == r); } { return l.pointed_node() != r.pointed_node(); }
BOOST_INTRUSIVE_FORCEINLINE reference operator*() const BOOST_INTRUSIVE_FORCEINLINE reference operator*() const
{ return *operator->(); } { return *operator->(); }