Construct new empty slice having the same element type and shape to given slice.
n-dimensional slice to refer shape and element type
new empty slice
auto s = empty!int(2, 3); auto e = empty_like(s); static assert(is(typeof(e) == typeof(s))); assert(e.shape == s.shape); s[0, 0] += 1; assert(e != s);
See Implementation
Construct new empty slice having the same element type and shape to given slice.