mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
5ed16195b3
Switching the iterator comparison used lowers the requirement for iterators from *RandomAccessIterators* to *ForwardIterators*, which is a benefit. It is also more accurate; instead of saying "if `begin` is less than the end, stop." it states "if `begin` is not equal to end, stop." Additionally, the old '<' did not protect us from undefined behavior because it is undefined to compare two iterators relationally that are not: 1. past the end 2. within the array |
||
---|---|---|
.. | ||
SFML |