title: How to convert a std::array to a std::vector?
body: <p>I need to convert a <code>std::array</code> to a <code>std::vector</code>, but I could not find anyway to do it quickly. Here is the sample code:</p>
  
  <pre><code> std::array&lt;char,10&gt; myData={0,1,2,3,4,5,6,7,8,9};
  </code></pre>
  
  <p>Now I need to create a vector such as:</p>
  
  <pre><code>std::vector&lt;char&gt; myvector;
  </code></pre>
  
  <p>and initialize it with the array values.</p>
  
  <p>What is the fastest way to do this?</p>