Hi mratsim,
IMO, chaining inline iterators is much butter solution as the performance is as good as manually crafted loop. Closure iterators are slower, as they usually copy on capture and they need to maintain the state
Hi mratsim,
IMO, chaining inline iterators is much butter solution as the performance is as good as manually crafted loop. Closure iterators are slower, as they usually copy on capture and they need to maintain the state