lemire/Code-used-on-Daniel-Lemire-s-blog — pull request #1 by klmr (2012-06-20 20:41:13+00:00)
Title: Variant using iterator initialization added.

The vector is initialized from a pair of iterators which generate the initialization values lazily. This variant is on par with, and with `-O3` even faster than, all other variants, notably the UB “no resizing” variant and manual memory allocation via `new`.

And it is well-defined behaviour and uses only high-level language constructs and no manual memory management. The name `iota` is borrowed from the `std::iota` generator function (in C++11).