This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: random numbers in bulk


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]