Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
spinlocked
· 13y ago · 0 comments
Do you need magic to create an O(1) allocator for a pool of fixed size objects?
Comments
[–]
marshray
13y ago
Yes, when (as in the general case of std::list) the number of objects is not known in advance.
[–]
spinlocked
OP
13y ago
true. however, libstdc++ implements __pool_alloc for a reason.