Re:Writing a custom iterator in modern C++
by jhayward on Monday December 21, 2020 @11:00AM
(#25496053)
> I think you are arguing that iterators are "primarily" for iteration
I really wonder why people put up with something named this way then. "That fool thinks iterators are for iteration!"
Clarity of abstraction and good naming are important, unless the practitioners are masochists.
Sometimes C pointers are used for iteration, but I would not say that is their primary purpose.