diff --git a/src/Targets/TargetMemory.hpp b/src/Targets/TargetMemory.hpp index b743d118..7d6b01fa 100644 --- a/src/Targets/TargetMemory.hpp +++ b/src/Targets/TargetMemory.hpp @@ -26,6 +26,10 @@ namespace Bloom::Targets return this->startAddress == rhs.startAddress && this->endAddress == rhs.endAddress; } + bool operator < (const TargetMemoryAddressRange& rhs) const { + return this->startAddress < rhs.startAddress; + } + [[nodiscard]] bool intersectsWith(const TargetMemoryAddressRange& other) const { return (other.startAddress <= this->startAddress && other.endAddress >= this->startAddress)