Get pointer or reference of an element in Array(struct)

anonymous anonymous at example.com
Sat Dec 9 06:38:46 UTC 2017


On Saturday, 9 December 2017 at 06:15:16 UTC, Arun Chandrasekaran 
wrote:
> Is there a way to get the pointer or reference of an element in 
> Array(T)?
[...]
>     auto d2 = gallery[0];

auto d2 = &gallery[0];


More information about the Digitalmars-d-learn mailing list