| c++ Programming Glossary: kind_of_memoryCritique my heap debugger http://stackoverflow.com/questions/2830272/critique-my-heap-debugger  detected n   instance void allocate size_t size const char kind_of_memory size_t token throw std bad_alloc  void raw malloc size ALIGNMENT.. static_cast char raw ALIGNMENT counter std cerr allocated kind_of_memory at payload size bytes n return payload void release void payload.. n return payload void release void payload const char kind_of_memory size_t correct_token size_t wrong_token throw  if payload 0.. 
 Critique my non-intrusive heap debugger http://stackoverflow.com/questions/2835416/critique-my-non-intrusive-heap-debugger   printf b CANARY i __ 2X b  putchar ' n'  return dead enum kind_of_memory AVAILABLE TOMBSTONE NON_ARRAY_MEMORY ARRAY_MEMORY const char.. array memory struct metadata  byte address size_t size kind_of_memory kind bool in_use const  return kind 2  void print const  printf.. shutting down  the_heap_debugger void allocate size_t size kind_of_memory kind throw std bad_alloc  byte raw static_cast byte malloc size.. 
 |