Remove unnecessary explicit definition of enumerated_iterator::operator!=

This commit is contained in:
Kp 2022-10-09 23:15:19 +00:00
parent 1a42696a2b
commit 5d412f3c19

View file

@ -98,10 +98,9 @@ public:
++ m_idx;
return *this;
}
bool operator!=(const enumerated_iterator &i) const
{
return m_iter != i.m_iter;
}
/* Define operator== to compare only the iterator, but not the index. This
* is sufficient for proper operation, and generates smaller code.
*/
bool operator==(const enumerated_iterator &i) const
{
return m_iter == i.m_iter;