1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Add RangedValues::getIntersectionsStartingAtZeroWith

This commit is contained in:
attila 2025-01-29 11:17:43 +01:00 committed by Attila Szarvas
parent 2d24504cd1
commit 213d3fb56a

View file

@ -800,6 +800,13 @@ public:
return result;
}
RangedValues<T> getIntersectionsStartingAtZeroWith (Range<int64> r) const
{
auto result = getIntersectionsWith (r);
result.drop ({ (int64) 0, r.getStart() });
return result;
}
const auto& getRanges() const { return ranges; }
size_t size() const