2022-04-02 02:48:54 +02:00
|
|
|
//============ Copyright Valve Corporation, All rights reserved. ============//
|
|
|
|
//
|
|
|
|
// Purpose:
|
|
|
|
//
|
|
|
|
// $NoKeywords: $
|
|
|
|
//
|
|
|
|
// A growable array class that maintains a free list and keeps elements
|
|
|
|
// in the same location
|
|
|
|
//===========================================================================//
|
2022-05-01 23:03:20 +02:00
|
|
|
#pragma once
|
2022-04-02 02:48:54 +02:00
|
|
|
|
|
|
|
#include "tier1/utlmemory.h"
|
|
|
|
|
2022-06-23 19:52:58 +02:00
|
|
|
template< class T, class A = CUtlMemory<T> >
|
|
|
|
class CUtlVector
|
2022-04-02 02:48:54 +02:00
|
|
|
{
|
2022-06-23 19:52:58 +02:00
|
|
|
typedef A CAllocator;
|
|
|
|
public:
|
|
|
|
typedef T ElemType_t;
|
|
|
|
protected:
|
|
|
|
CAllocator m_Memory;
|
2022-04-02 02:48:54 +02:00
|
|
|
int m_Size;
|
|
|
|
};
|