
14 Dec
2009
14 Dec
'09
5:42 p.m.
Tim Blechmann schrieb: [snip]
the code is available from my git repository [1], branch topic/freelist_tweaks. christopher (and others), what do you think about this approach?
That's exactly what I need. Many thanks for your work, Tim! Just one comment: in the default ctor of the stack you pass 128 to the ctor of the freelist. I think you should rather call the default ctor. If the user really wants a static freelist, the static size should be stated explicitly. For non-static freelists, there is in my opinion, no need to pre-allocate nodes at all. -Christopher