Boost logo

Boost :

Subject: Re: [boost] boost::pool nextof method
From: Francois Duranleau (xiao.bai.xiong_at_[hidden])
Date: 2014-01-31 08:22:57

On Thu, Jan 30, 2014 at 3:41 PM, Gilbert Polo <gpolo1_at_[hidden]>wrote:

> 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.


Boost list run by bdawes at, gregod at, cpdaniel at, john at