pool allocator based on element type instead of size?
17 Jun
2009
17 Jun
'09
3:32 a.m.
I've found myself wanting something similar to boost::fast_pool_allocator, but with the following syntax for releasing memory: using namespace boost; std::list< T, fast_pool_allocator<T> > myList; // Note that second template parameter is T, not sizeof(T). // Basically I guess I just want a pool per type, even if // two types have the same size. singleton_pool< fast_pool_allocator_tag, T >::release_memory(); Is there a reason why this isn't doable that I should know about before I try to implement it? Has something similar already been done (even if it's from outside the Boost community) so I don't reinvent the wheel? Thanks, Kenny Riddile
5625
Age (days ago)
5625
Last active (days ago)
0 comments
1 participants
participants (1)
-
Kenny Riddile