Small-size-optimized Appender

Paul Backus snarwin at gmail.com
Fri Oct 16 20:45:24 UTC 2020


On Friday, 16 October 2020 at 20:36:57 UTC, Per Nordlöw wrote:
> On Friday, 16 October 2020 at 20:32:43 UTC, Paul Backus wrote:
>>>             _large.put(x);
>
> Should I use
>
>     import core.lifetime : move;
>     _large.put(x.move);
>
> instead?

Just remove the @trusted annotation from the function and wrap 
the calls to @system functions in @trusted lambdas. Attribute 
inference will take care of the rest.


More information about the Digitalmars-d mailing list