How to make a generic function to take a class or struct by reference?

drug drug2004 at bk.ru
Sun Mar 27 17:39:10 UTC 2022


Auto ref?

```D

int* getX(T)(auto ref T t)
{
     ...
```



More information about the Digitalmars-d-learn mailing list