| 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); |
nothing calls this directly
no test coverage detected