S
sheam
I am using a custom allocator with std::map. Is there anyway to access
the allocator instance that belongs to my instance of map?
i.e.,
std::map<int,int,MyIntComparer,MyCustomAllocator> m;
.....
.....
.....
m.allocator()->printUsageStats();
Also, I don't really need a specialized comparerer, but I had to provide
on, in order to use MyCustomAllocator. Is there a way to specify an
allocator, but not a comparator?
Thanks,
~S
the allocator instance that belongs to my instance of map?
i.e.,
std::map<int,int,MyIntComparer,MyCustomAllocator> m;
.....
.....
.....
m.allocator()->printUsageStats();
Also, I don't really need a specialized comparerer, but I had to provide
on, in order to use MyCustomAllocator. Is there a way to specify an
allocator, but not a comparator?
Thanks,
~S