How to get a vector containing only the last n elements of another vector?
<p>I have an <code>std::vector</code>, and I want a separate <code>std::vector</code> containing only the last n elements of the original vector.  Besides a loop over the entire vector inserting one-by-one, is there a cleaner way of doing this?</p>
