title: How to insert a vector into another vector in a specific place so that i will get a big vector of both and that place will be overwritten?
body: <p>for an exercise i really need to know how to insert one vector into another.</p>
  
  <p>here is an example of what i need:</p>
  
  <pre><code>//let's say i have these 2 vecs: 
  vec1 = { 18, 192, 34};
  vec2 = { 171, 11, 50, 6};
  </code></pre>
  
  <p>and i choose the point where to connect them, lets say i choose vec 1 to be
  in place 2 of vector 2 like so:</p>
  
  <pre><code>result_vec = { 171, vec1, 50, 6};
  </code></pre>
  
  <p>so what i will actually get when i'm done is:</p>
  
  <pre><code>result_vec = { 171, 18, 192, 34, 50, 6};
  </code></pre>
  
  <p>for me it will be even better to see two examples, a simple example and another example with smart pointers like shared_ptr or unique_ptr.</p>
  
  <p>Thanks!</p>