MCPcopy Create free account
hub / github.com/ceph/ceph / find_adj

Method find_adj

src/include/interval_set.h:314–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312 }
313
314 auto find_adj(T start) const {
315 auto p = m.lower_bound(start);
316 if (p != m.begin() &&
317 (p == m.end() || p->first > start)) {
318 --p; // might touch?
319 if (p->first + p->second < start)
320 ++p; // it doesn't.
321 }
322 return p;
323 }
324
325 auto find_adj_m(T start) {
326 auto p = m.lower_bound(start);

Callers

nothing calls this directly

Calls 3

lower_boundMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected