Thank you for your work!
It would be beneficial to implement a feature that allows the selection of an allocator instance at runtime. For instance, we could introduce an opaque context at the construction of the queue. This context would then be passed to the existing overridable malloc/free method traits. Subsequently, the context could be utilized to determine the appropriate allocator (for my purposes, a pointer would suffice, but the context could be simply defined in the traits class).
Another approach would be to make it stl-compliant, but I am afraid this is more work and will break existing user code.
Hello,
Thank you for your work! It would be beneficial to implement a feature that allows the selection of an allocator instance at runtime. For instance, we could introduce an opaque context at the construction of the queue. This context would then be passed to the existing overridable malloc/free method traits. Subsequently, the context could be utilized to determine the appropriate allocator (for my purposes, a pointer would suffice, but the context could be simply defined in the traits class).
Another approach would be to make it stl-compliant, but I am afraid this is more work and will break existing user code.
What do you think?