How can I check if a type is a pointer?
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Sat Jun 25 14:32:27 UTC 2022
On Saturday, 25 June 2022 at 14:18:10 UTC, rempas wrote:
> In that example, the first comparison will execute the second
> branch and for the second comparison,
> it will execute the first branch. Of course, this trait doesn't
> exist I used an example to show what I want
> to do. Any ideas?
I guess you can look at the source code for
https://dlang.org/phobos/std_traits.html#isPointer
More information about the Digitalmars-d-learn
mailing list