You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why? See http://eel.is/c++draft/range.iota#sentinel-2 When the value of the iterator is equal to the upper bound (in this case 10), the iterator is equal to the sentinel and thus the loop stops.
@CaseyCarter I believe the example in the draft standard might perhaps contain a very minor error.
http://eel.is/c++draft/range.iota#overview-2
Shouldn't the comment be
prints: 1 2 3 4 5 6 7 8 9 10
?The text was updated successfully, but these errors were encountered: