I am trying to mix some C code with STL where the basic system revolves around using some custom allocators with specialized malloc/free. Is there an easy way to get STL to play nice with such schemes?
Thanks in advance.
09 Sep, 2009, David Haley wrote in the 2nd comment:
Votes: 0
You'll need to give a few more details for the question to make sense to me, I'm afraid. What is "the basic system", what are you mixing with which part of STL, what problems are you currently having, etc.
Well basically the server I am working with includes custom replacements for malloc/free/realloc etc which rely for the most part directly on brk/sbrk. I suspect any allocations I do would have to run through this system and thus I would need to create custom allocators for various libraries I am using including STL and Boost::pool so it routes through the existing allocation scheme. Is this essentially correct?
I am trying to mix some C code with STL where the basic system revolves around using some custom allocators with specialized malloc/free. Is there an easy way to get STL to play nice with such schemes?
Thanks in advance.