mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-03 14:34:14 +00:00
Add more operators. (#8309)
Co-authored-by: Derek Bailey <derekbailey@google.com>
This commit is contained in:
@@ -56,12 +56,24 @@ struct VectorIterator {
|
|||||||
return data_ == other.data_;
|
return data_ == other.data_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool operator!=(const VectorIterator &other) const {
|
||||||
|
return data_ != other.data_;
|
||||||
|
}
|
||||||
|
|
||||||
bool operator<(const VectorIterator &other) const {
|
bool operator<(const VectorIterator &other) const {
|
||||||
return data_ < other.data_;
|
return data_ < other.data_;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool operator!=(const VectorIterator &other) const {
|
bool operator>(const VectorIterator &other) const {
|
||||||
return data_ != other.data_;
|
return data_ > other.data_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool operator<=(const VectorIterator &other) const {
|
||||||
|
return !(data_ > other.data_);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool operator>=(const VectorIterator &other) const {
|
||||||
|
return !(data_ < other.data_);
|
||||||
}
|
}
|
||||||
|
|
||||||
difference_type operator-(const VectorIterator &other) const {
|
difference_type operator-(const VectorIterator &other) const {
|
||||||
|
|||||||
Reference in New Issue
Block a user