I would like to have a word with whoever was responsible for the filesystem library in C++. Iterator objects are from the devil.
Conversation
Notices
-
xianc78@gameliberty.club's status on Wednesday, 06-Sep-2023 00:02:03 JST xianc78 -
xianc78@gameliberty.club's status on Wednesday, 06-Sep-2023 04:23:52 JST xianc78 @john I'm just use to range listing and iterating like you do with arrays. I never liked the whole iterator pattern. It seemed like a waste.
-
John (john@liberdon.com)'s status on Wednesday, 06-Sep-2023 04:23:54 JST John @xianc78
You take issue with instantiating a sentinel object for end iterator?Otherwise I would think a range for listing directories would be extremely similar.
-