C++: typedef-ing STL
<p>Instead of using</p>

<pre><code>std::vector&lt;Object&gt; ObjectArray;
</code></pre>

<p>I would like it to be</p>

<pre><code>MyArray&lt;Object&gt; ObjectArray;
</code></pre>

<p>with all the std::vector methods preserved. (like push_back(), reserve(), ...etc)</p>

<p>However, using</p>

<pre><code>typedef std::vector MyArray;
</code></pre>

<p>won't work. Should I use template instead? How?</p>

<p>Thanks in advance.</p>
