hi,
I have a software which uses huge STL data structures. Since STL
retains its mempool, the memory that is used is not given back to the
system.
Now consider a simple class:
MyClass *c1=new MyClass;
Suppose I do a million of these too, then it takes up all of the memory
left over.
Two questions:
1. Can I use STL's memory pool to allocate memory for this class as
well - Is there a piece of code I can look to see?
2. How do I **verify** that I am using STL's memory pool - I have
valgrind at my disposal. I dont want to make a mistake and think
everything is working hunky dory.
Thanks in advance
-Sandeep
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]