Fix assert that doesn't check anything.
Move the assert that checks for the end iterator inside the loop which
actually moves over the elements. This allows it to check that the
iteration stays within the range.
rtrieu on Jan 23 2020, 4:03 PM.Authored by