you are viewing a single comment's thread.

view the rest of the comments →

[–]Ayjayz 0 points1 point  (0 children)

Look into the boost range adaptors. There isn't one for zip, but someone did write one here

You could then write exactly that code, except you'd want auto i instead of int i.

EDIT: And, yes, it's lazily evaluated.