What to use for typedef struct array in c++
<p>I have been implementing a visual debugger in my application using another bit of source code. I ran into an issue when I stumbled across them using this..</p>

<pre><code>struct DebugVertex
{
    gkVector3 v;
    unsigned int color;
};


typedef utArray&lt;DebugVertex&gt; Buffer;
</code></pre>

<p>I found the free library that they are using for utArray, however I like to stick with the included libraries when possible (it seems like they used external libs just cause). This is what the definition of utArray looks like...</p>

<pre><code>template &lt;typename T&gt;
class utArray
{
public:
    typedef T           *Pointer;
    typedef const T     *ConstPointer;

    typedef T            ValueType;
    typedef const T      ConstValueType;

    typedef T           &amp;ReferenceType;
    typedef const T     &amp;ConstReferenceType;

    typedef utArrayIterator&lt;utArray&lt;T&gt; &gt;       Iterator;
    typedef const utArrayIterator&lt;utArray&lt;T&gt; &gt; ConstIterator;

public:
    utArray() : m_size(0), m_capacity(0), m_data(0), m_cache(0)  {}

    utArray(const utArray&lt;T&gt;&amp; o)
        : m_size(o.size()), m_capacity(0), m_data(0), m_cache(0)
    {
        reserve(m_size);
        copy(m_data, o.m_data, m_size);
    }
</code></pre>

<p>Is there anything similar I can use? I am not experienced defining a type based on a struct array so any help would be appreciated.</p>
