title: How do I clone vector?
body: <p>I am using vector as an input buffer...</p>
  
  <pre><code>recv = read(m_fd, &amp;m_vbuffer[totalRecv], SIZE_OF_BUFFER);
  </code></pre>
  
  <p>After it reads all data from the input buffer then it will put the data inside of the vector into the thread pool. </p>
  
  <p>So I was trying to do clone the vector. I think I cannot just pass the pointer to the vector because of the new packets coming in and it overwrites the data inside of the vector. </p>
  
  <p>However, I could not find a way to clone the vector. Please provide me a proper way to handle this. Also I will be very appreciated if you guys point out any problems using vectors as input buffer or tutorials related to this...</p>