5 ms·
Do you need magic to create an O(1) allocator for a pool of fixed size objects?
by spinlocked 14y ago
Do you need magic to create an O(1) allocator for a pool of fixed size objects?
- marshray 14y agoYes, when (as in the general case of std::list) the number of objects is not known in advance.
- spinlocked 14y agotrue. however, libstdc++ implements __pool_alloc for a reason.
- deleted 14y ago[deleted]
- deleted 14y ago[deleted]