I am trying to replace new/delete with my own allocator(s). So, overriding placement new and delete - quite happy with that. Looks something like this ...
void*
You could look the pointer up in your allocator, find out the size from your bookkeeping and compute the number of elements using sizeof T.