
15 Jun
2009
15 Jun
'09
9:12 p.m.
Christian Schladetsch wrote:
What I see instead is that containers like chain<> can use monotonic::storage where some of the earlier links are on the stack, and when that is exhausted, the remaining links go on the heap. This is transparent to the chain. Similiarly for other node-based containers, but this cannot work for obvious reasons for vector.
Your allocator needs to be smart about what to do if a request for something larger than the chunk size comes in. Luke