How can I convert a std::vector<unsigned short> to std::vector<int>?
<p>I have found this question a few times, but none of them seem to offer a good answer (please mark as duplicate if I missed it).</p>

<p>I have a method that returns a <code>std::vector&lt;unsigned short&gt;</code>, but I want to allow for more numbers than an unsigned short can hold, so I would like to convert it to a <code>std::vector&lt;int&gt;</code> before I add my bigger numbers to it.</p>

<p>So I want to convert it while keeping the data &amp; order intact. A <code>std::vector&lt;unsigned short&gt;</code> that contains <code>[1, 2, 3]</code> should contain <code>[1, 2, 3]</code> after it has been converted to <code>std::vector&lt;int&gt;</code>.</p>