This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: random numbers in bulk
On Sat, Aug 25, 2012 at 7:37 PM, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> But iterators don't have to imply non-sequential storage. Using
> iterators instead of pointers would allow you to store them in a
> std::deque, for example, or in a std::vector using
> std::back_insert_iterator.
Yes, and this is already trivial to do with the operator() interface.
The fill() interface is needed for performance, everything else is
taken care by the operator() interface.