Fun with inout

Kagamin via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 6 05:12:52 PDT 2014


You can write it inline, it's about 2 lines

ReturnType!(T.f) function(inout Unqual!T) test;
typeof(test(t))... // if you have t of type T


More information about the Digitalmars-d mailing list