mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 11:55:51 +00:00
forgotten changes after a rebase
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
3d2fc57b82
commit
f4e7002ea3
11 changed files with 43 additions and 18 deletions
|
@ -148,6 +148,30 @@ struct numeric_pair {
|
|||
template <typename X, typename Y>
|
||||
numeric_pair(X xp, Y yp) : x(convert_struct<T, X>::convert(xp)), y(convert_struct<T, Y>::convert(yp)) {}
|
||||
|
||||
bool operator<(const T& a) const {
|
||||
return x < a || (x == a && y < 0);
|
||||
}
|
||||
|
||||
bool operator>(const T& a) const {
|
||||
return x > a || (x == a && y > 0);
|
||||
}
|
||||
|
||||
bool operator==(const T& a) const {
|
||||
return a == x && y == 0;
|
||||
}
|
||||
|
||||
bool operator!=(const T& a) const {
|
||||
return !(*this == a);
|
||||
}
|
||||
|
||||
bool operator<=(const T& a) const {
|
||||
return *this < a || *this == a;
|
||||
}
|
||||
|
||||
bool operator>=(const T& a) const {
|
||||
return *this > a || *this == a;
|
||||
}
|
||||
|
||||
bool operator<(const numeric_pair& a) const {
|
||||
return x < a.x || (x == a.x && y < a.y);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue