2002 November 7th
Thursday
I wrote my own routines for allocation and free,
which essentially wrap malloc() and free(), just
to get a rough idea of total memory use -- and
detect some leaks.
Let's say I override the "new" and "delete"
operators, too. (Something I haven't tried yet)
Can I get STL to use the overrides without
explicitly mentioning an allocator in all of
my STL uses?
Or is it more reliable to just go though the
code and change things like vector<T> to
vector<T,MyAllocator>, and thing like
vector<string> to
vector<string<MyAllocator>,MyAllocator>.
(NOTE: I have no idea if that's how you
change the allocator for "string"!
I remember something like "basic_string"
making life interesting for me once.)
--- Colin
cp...@ea...
|