1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-28 09:07:19 +03:00

add some missing operators to LineAndColumn

This commit is contained in:
Maxime Coste 2012-03-21 14:13:26 +00:00
parent 3dd82a2b85
commit 60fb523d62

View File

@ -51,10 +51,29 @@ struct LineAndColumn
return column <= other.column;
}
bool operator> (const EffectiveType& other) const
{
if (line != other.line)
return line > other.line;
return column > other.column;
}
bool operator>= (const EffectiveType& other) const
{
if (line != other.line)
return line > other.line;
return column >= other.column;
}
bool operator== (const EffectiveType& other) const
{
return line == other.line and column == other.column;
}
bool operator!= (const EffectiveType& other) const
{
return line != other.line or column != other.column;
}
};
}