Need for (C++20) Contiguous Range
Simen Kjærås
simen.kjaras at gmail.com
Fri Oct 9 13:38:28 UTC 2020
On Friday, 9 October 2020 at 13:31:18 UTC, Steven Schveighoffer
wrote:
> We are talking about a range that is also contiguous in memory.
> The only logical reason to require this is to get a ptr and a
> length and use the CPU specialized instructions for these
> things. We have that type pattern, it's a slice.
There are ranges with contiguous memory that aren't slices -
stride and occasionally map over a contiguous range comes to
mind. Converting these to slices may not be possible, and
certainly not efficient.
--
Simen
More information about the Digitalmars-d
mailing list