[run_set] Add lower_bound and upper_bound functions
This commit is contained in:
parent
4d56cef5de
commit
661b4de5de
@ -92,6 +92,14 @@ namespace base {
|
|||||||
return runs_.end();
|
return runs_.end();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const_iterator lower_bound(T const &b) const {
|
||||||
|
return runs_.lower_bound(run<T>(b, b + 1));
|
||||||
|
}
|
||||||
|
|
||||||
|
const_iterator upper_bound(T const &b) const {
|
||||||
|
return runs_.upper_bound(run<T>(b, b + 1));
|
||||||
|
}
|
||||||
|
|
||||||
void negate() {
|
void negate() {
|
||||||
rset replacement;
|
rset replacement;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user