Need for (C++20) Contiguous Range

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Fri Oct 9 09:52:12 UTC 2020


On Thursday, 8 October 2020 at 16:42:51 UTC, Steven Schveighoffer 
wrote:
> It should just be:
>
> enum isDynamicArray(T) = is(T == U[], U);

So if I create my owner container that has an opCast overload to 
a slice of the underlying buffer, would isDynamicArray be true 
for my container?

If not you need a new test.



More information about the Digitalmars-d mailing list