Original Post
I found some code I''d saved for determining if a pointer is stack allocated or not (I assume it''s for determining whether it''s safe to delete a given pointer), but I''m afraid I don''t understand it at all. Could anyone explain to me how this pointer arithemetic works, and whether it''s possible for me to condense this code into a single function?