List.end() is iterator to the "past-the-end" element

Exercise24.cpp contains:

//iterator laser_front starts to point the last element of the list
laser_front = laser.end();

This should rather say:

//iterator laser_front starts to point to the past-the-end element of the list

https://cplusplus.com/reference/list/list/end/

Hello @JRTG ,

Fixed this in the notebook and a couple of additional references. Many thanks for your feedback!

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.