std::vector, default construction, C++11 and breaking changes
Does the C++03 standard mandate that std::vector must have a constructor defined as above, i.e. with a default argument? In particular is there a guarantee that the entries of the vector object get copied instead of default constructed? Yes, the specified behavior is that x is copied n times so that the container is initialized … Read more