Exemple #1
0
 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()));
 }
Exemple #2
0
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
}