I am currently learning how to use the boost pool library. However, I have a question regarding the nextof of method found in the class simple_segregated_storage.hpp. How does the increment of the void pointer work. How does it know how much to increment the void pointer by in order to get to the next chunk?
On Thu, Jan 30, 2014 at 3:41 PM, Gilbert Polo
I am currently learning how to use the boost pool library. However, I have a question regarding the nextof of method found in the class simple_segregated_storage.hpp. How does the increment of the void pointer work. How does it know how much to increment the void pointer by in order to get to the next chunk?
It does not have to know, it is a linked list of chunks. The address of the next free chunk is stored right at the start of each free chunk. -- François
participants (2)
-
Francois Duranleau
-
Gilbert Polo