determining type a pointer points to.

Stewart Gordon smjg_1998 at yahoo.com
Sat Aug 22 15:55:06 PDT 2009


div0 wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Is there a function to do this?
> I Didn't find anything in traits or std.traits
<snip>

Not a function as such, but....

     typeof(*p)

Stewart.


More information about the Digitalmars-d-learn mailing list