readerwriterqueue
readerwriterqueue copied to clipboard
Memory allocation
Is the strategy of allocating memory the same as that of STL?
It doesn't use standard allocators or throw std::bad_alloc
if that's what you're asking, but you can customize the allocation through the traits. The default is malloc/free.
Oops, was thinking of my MPMC implementation. ReaderWriterQueue
also uses malloc
/free
and does not throw std::bad_alloc
, but provides no customization point for changing the allocation implementation.