feat(util/rb_tree): add double_cmp

This commit is contained in:
Leonardo de Moura 2015-11-08 17:10:49 -08:00
parent 8308e87a6c
commit c1392e60be

View file

@ -415,4 +415,7 @@ struct unsigned_cmp {
struct int_cmp {
int operator()(int i1, int i2) const { return i1 < i2 ? -1 : (i1 == i2 ? 0 : 1); }
};
struct double_cmp {
int operator()(double i1, double i2) const { return i1 < i2 ? -1 : (i1 > i2 ? 1 : 0); }
};
}