feat(util/rb_tree): add double_cmp
This commit is contained in:
parent
8308e87a6c
commit
c1392e60be
1 changed files with 3 additions and 0 deletions
|
@ -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); }
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue