Why valarray does not have a swap function like vector in C++03?
<p>As title, I am confused about this. <code>swap</code> should be extremely useful if we are facing an iterative problem. The old vector and the new vector can be swapped by exchanging pointer-to-memory instead of contents. However, this is valid in <code>std::vector</code> but not in <code>std::valarray</code>. I am wondering why. In C++0x it seems the function is added, but why not in C++03?</p>
