reduce() for cppRangeMapBase