title: Template for container and container content type C++
body: <p>I essentially want</p>
  <pre><code>template &lt;typename Container, typename T&gt;
  void copy(Container&lt;T&gt; &amp;A, const Container&lt;T&gt; &amp;B)
  {
     (copy contents from B to A) ...
  }
  </code></pre>
  <p>But afaik, it cannot be done this way. Usage wise, it would copy contents from (example) <code>vector&lt;int&gt; A, B</code>, but also work for <code>list&lt;float&gt; A, B</code>, for instance.</p>
  <p>So the single function would work for containers of different types and different data types for their respective containers.</p>