bool overlaps(const Fixed_memory_range& other) const { // Other range overlaps with my range return in_range(other.addr_start()) or in_range(other.addr_end()) // Or my range is inside other range or (other.in_range(addr_start()) and other.in_range(addr_end())); }
bool Fixed_memory_range::overlaps(const Fixed_memory_range& other) const noexcept { return (in_range(other.addr_start()) or in_range(other.addr_end())) //< Other range overlaps with my range or (other.in_range(addr_start()) and other.in_range(addr_end())); //< My range is inside other range }