Motive behind !empty() with front() instead of Optional front()

Per Nordlöw per.nordlow at gmail.com
Tue Apr 6 20:47:31 UTC 2021


On Tuesday, 6 April 2021 at 02:14:17 UTC, Paul Backus wrote:
>     auto ref T identity(T)(auto ref T arg)
>     {
>         import core.lifetime: forward;
>         return forward!arg;
>     }

When is the call to forward needed in this case?


More information about the Digitalmars-d mailing list