Originally Posted by
Prelude
>I found it has not data members, the same as its base class _Allocator_base. Is that correct?
Yes.
>My questions is what is the purpose of copy?
What copy? There's no copy member function in the allocator class. Do you mean the assignment operator? That and the copy constructor are for the allocator objects, and because the default allocator doesn't maintain any internal state (it just uses new/delete), they don't need to do anything beyond the default behavior.
Why do you think this is wrong?