MCPcopy Create free account
hub / github.com/comaps/comaps / AddRange

Function AddRange

libs/indexer/feature_visibility.cpp:347–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345namespace
346{
347void AddRange(pair<int, int> & dest, pair<int, int> const & src)
348{
349 if (src.first != -1)
350 {
351 ASSERT_GREATER(src.first, -1, ());
352 ASSERT_GREATER(src.second, -1, ());
353
354 dest.first = min(dest.first, src.first);
355 dest.second = max(dest.second, src.second);
356
357 ASSERT_GREATER(dest.first, -1, ());
358 ASSERT_GREATER(dest.second, -1, ());
359 }
360}
361
362pair<int, int> kInvalidScalesRange(-1, -1);
363} // namespace

Callers 1

GetDrawableScaleRangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected