inout after function
Guillaume Piolat
first.last at gmail.com
Sun Nov 26 20:43:45 UTC 2017
On Saturday, 25 November 2017 at 21:51:41 UTC, Dave Jones wrote:
> What does the "inout" after front() do here...
>
>
> @property ref inout(T) front() inout
> {
> assert(_data.refCountedStore.isInitialized);
> return _data._payload[0];
> }
>
> Cant seem to find an explanation in the docs or forums :(
https://p0nce.github.io/d-idioms/#Knowing-inout-inside-out
More information about the Digitalmars-d-learn
mailing list