73inline errc_t Interval::merge(
const Interval &other)
75 if (start_ > other.stop() || other.start() > stop_)
77 aError(
"merge interval failed, no overlap");
78 return eErrorInvalidParam;
80 start_ = std::min(start_, other.start());
81 stop_ = std::max(stop_, other.stop());