does pointer refer to a heap object?

Carl Sturtivant sturtivant at gmail.com
Sat Jul 27 10:58:19 PDT 2013


Given a pointer to a struct, is there a clean way to determine if 
that struct is allocated on the heap or not? Or alternatively to 
determine whether it has finite or infinite lifetime (in TDPL 
speak)?





More information about the Digitalmars-d-learn mailing list