Is there a way to tell if an auto ref parameter is by ref or by value?
Anonymouse
zorael at gmail.com
Sun May 10 01:15:58 UTC 2020
On Sunday, 10 May 2020 at 00:33:07 UTC, NaN wrote:
> Ie something like..
>
>
> auto Foo(T)(auto ref T x)
> {
> static if (isByRef(x))
> {
> }
> else
> {
> }
> }
__traits(isRef, x)
More information about the Digitalmars-d-learn
mailing list