| 150 | // |
| 151 | |
| 152 | CStdPtrArray::CStdPtrArray(int iPreallocSize) : m_ppVoid(NULL), m_nCount(0), m_nAllocated(iPreallocSize) |
| 153 | { |
| 154 | ASSERT(iPreallocSize>=0); |
| 155 | if( iPreallocSize > 0 ) m_ppVoid = static_cast<LPVOID*>(malloc(iPreallocSize * sizeof(LPVOID))); |
| 156 | } |
| 157 | |
| 158 | CStdPtrArray::CStdPtrArray(const CStdPtrArray& src) : m_ppVoid(NULL), m_nCount(0), m_nAllocated(0) |
| 159 | { |