O'Reilly logo
  • Zack Zhang thinks this is interesting:

list and increments blocksAvailable_. Don’t forget that because Chunk is agnostic regarding the block size, you must pass the size as a parameter to Deallocate.

From

Cover of Modern C++ Design: Generic Programming and Design Patterns Applied

Note

apparently the code forgets to check if p is over chunk's boundary :)