Passing structs to functions

phant0m via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jul 2 11:47:31 PDT 2016


On Saturday, 2 July 2016 at 18:43:51 UTC, ketmar wrote:
> void boo() (in auto ref MyStruct s) { ... }
>
> this will accept both lvalues and rvalues, and will avoid 
> copying if it can.

Thank you! Could you please explain what does "auto" in this 
context mean?


More information about the Digitalmars-d-learn mailing list