Let's assume T
is moveable object:
vector<T> v;
v.resize(...)
if reallocation is needed, then will that code invoke copy, or move constructor on all elements?
If the answer is "move constructor" then how does the compiler know that it should use this one?