Contiguous.ptr

Used to work with Contiguous!(S) as if it was S*:

struct S { int a; }
Contiguous!(S) s = getS();
s.ptr.a = 42;

(replace it with "alias this" in D2)

NB! You may only modify value types accessed via .ptr or elements of stored dynamic arrays. Modifying actual arrays (i.e. appending new elements) is strictly prohibited and can result in very hard to debug memory corruptions. When in doubt consult one of this module developers.

struct Contiguous(S)
S*
ptr
()

Return Value

Type: S*

Pointer to stored data cast to struct type

/*************************************************************************

Meta