Code:
virtual bool Remove(const size_t &index)
{
//Check for out of range
if (index > (m_vVector.size()-1))
{
return false;
}
//Nullify current 'slot'
m_vVector[index] = NULL;
//Set cache index to this index (this will be used on next Add() operation)
m_CacheIndex = index;
//Cache value is now valid
m_CacheValid = true;
return true;
}