This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: random numbers in bulk
- From: Ulrich Drepper <drepper at gmail dot com>
- To: Paolo Carlini <paolo dot carlini at oracle dot com>
- Cc: gcc-patches at gcc dot gnu dot org, "libstdc++" <libstdc++ at gcc dot gnu dot org>
- Date: Sat, 25 Aug 2012 19:33:31 -0400
- Subject: Re: random numbers in bulk
- References: <CAOPLpQfN8UMru=NvE0gEFQ3QNUj_CD-gYaGdiTrTaWCmH42i1w@mail.gmail.com> <5039446B.8000102@oracle.com> <503946D2.5000103@oracle.com>
On Sat, Aug 25, 2012 at 5:42 PM, Paolo Carlini <paolo.carlini@oracle.com> wrote:
> Personally, assuming the name itself is already reserved / used elsewhere,
That was my thinking as well. There shouldn't be any further namespace problem.
> .. another preliminary comment of mine: why not using iterators to specify
> those ranges, instead of plain pointers? Aren't the forward iterators
> generally Ok, like for std::fill itself?
Does it really add anything worth? I used pointers because one of the
other extensions I'll submit really needs pointers because more than
one value is stored at once.
Also, one uses these interfaces to achieve performance. In no
situation would you store the numbers in a non-sequential way since
this means cache misses.