title: C++ how to copy contents of std::array to another?
body: <p>Its fairly well known on how to copy a standard c array into another:</p>
  <pre><code>char test[20] = &quot;asdasd&quot;;
  char test2[19] = &quot;asdassdsdfd&quot;;
  strcpy_s(test, sizeof(test), test2);
  </code></pre>
  <p>But how can I do the same with a <code>std::array</code>? (preferably without for loops)</p>
  <pre><code>std::array&lt;char, 20&gt; test = {&quot;asdasd&quot;};
  std::array&lt;char, 19&gt; test2 = {&quot;asdassdsdfd&quot;};
  // copy test2 into test
  
  </code></pre>