380if (number+1 == firstNumber) { // segment pointed by seg_it has been enlarged by new first element
381if (prev_it->numberEnd == number) // if there was one element gap, and now it is no gap after the previous segment
382segments.erase(prev_it); // we have to remove the previous segment
383return;
384 }
385// here: we can't enlarge seg_it segment
386if (prev_it->numberEnd == number) { // we can append new element to the end of the previous segment (there is still a gap after it, number+1 is in the gap)