?

Log in

No account? Create an account

C++ STL containers - Journal of Omnifarious

Jun. 30th, 2005

02:55 pm - C++ STL containers

Previous Entry Share Next Entry

I've just come to the conclusion that STL container classes should be required to not use copy or assignment unless they really are making a copy of the value. If they're just moving the value, they must use 'swap'.

This would allow STL container classes to be compatible with smart_ptrs, and I'm guessing it would also make them faster.