The OpenD Programming Language

mir_slice.ptr

ptr alias is available only if the slice kind is Contiguous contiguous and the .Slice.iterator is a pointers.

import mir.ndslice.slice;
struct mir_slice(Iterator_, size_t N_ = 1, SliceKind kind_ = Contiguous, Labels_...)
@fmamath
static if(kind == Contiguous && isPointer!Iterator)
alias ptr = iterator

Meta