"For example, if one wants to count the number of times vector<int, counting_allocator<int> > destroys int" Nope, this doesn't make sense. This isn't up to you to decide, rather the custom allocator should decide if it wants this or not.
↧