News for hackers. Stuff that matters.
Re:Writing a custom iterator in modern C++ by fjfaase on Monday December 21, 2020 @06:33AM (#25493951)
I agree, but I feel it is a little sad that such a powerful programming concept as an iterator is hard to implement in C++ if you want to make full use of it. Other program languages have made better choices with respect to this and allow you to write cleaner, shorter code.
Re:Writing a custom iterator in modern C++ by saurik on Monday December 21, 2020 @01:50PM (#25498037)
Why not just use those two operators instead of more and next?