Add null comparison operators to vector_iterator

This commit is contained in:
Giles Bathgate 2021-05-05 06:46:57 +01:00
parent 0dcadee486
commit b42bbded9b
1 changed files with 2 additions and 0 deletions

View File

@ -109,6 +109,8 @@ public:
tmp += n;
return tmp.operator*();
}
bool operator==( std::nullptr_t) const { return ptr == nullptr; }
bool operator!=( std::nullptr_t) const { return ptr != nullptr; }
bool operator< ( const Self& i) const { return ( ptr < i.ptr); }
bool operator> ( const Self& i) const { return i < *this; }
bool operator<=( const Self& i) const { return !(i < *this); }