C++ - create new constructor for std::vector<double>? : <p>I have written a custom container class which contains a <code>std::vector&lt;double&gt;</code> instance - works nicely. For compatibility with other API's I would like to export     the content of the container as a <code>std::vector&lt;double&gt;</code> copy . Currently this works:</p>

<pre><code>MyContainer container;
....
std::vector&lt;double&gt; vc(container.begin(), container.end());
</code></pre>

<p>But if possible would like to be able to write:</p>

<pre><code>MyContainer container;
....
std::vector&lt;double&gt; vc(container);
</code></pre>

<p>Can I (easily) create such a <code>std::vector&lt;double&gt;</code> constructor?</p>
