pop & popFront combined

"Nordlöw" via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Nov 1 06:54:30 PDT 2014


On Saturday, 1 November 2014 at 13:38:22 UTC, Marc Schütz wrote:
> If you want to avoid the temporary variable, you could write:
>
>     scope(success) r.popFront;
>     return r.moveFront;

Does this solution cost performance?


More information about the Digitalmars-d-learn mailing list