why does allocator in c++ need a copy constructor?
问题 It is said here that it's because of exception specification. I do not understand it. Does this question have any relationship with exception specification? 回答1: After reading through the tutorial I was a little confused myself by the wording. But I believe it's as simple as this: the tutorial was explaining why the allocator's template header shows allocator(const allocator&) throw(); and template <class U> allocator(const allocator<U>&) throw(); even though the copy constructor is fairly