#include "tier1/utlvector.h" CUtlVectormyVector; myVector.push_back(1); myVector.push_back(2); myVector.push_back(3);
int numElements = myVector.Count();This would return the value 3, since there are three elements in the array. CUtlVector is part of the Source SDK package library, which is a set of software development tools provided by Valve for building games on the Source engine.