CUtlVectormyVector; myVector.AddToTail(5); myVector.AddToTail(10); myVector.RemoveAll();
struct MyClass { int x; float y; }; CUtlVectorIn this example, a vector of `MyClass` objects is created and two objects are added to the end of the vector using the `AddToTail()` function. The `RemoveAll()` function is used to remove both objects from the vector, freeing up the allocated memory. Package/library: Valve’s Source Engine SDK (Source SDK)myVector; myVector.AddToTail({2, 3.14f}); myVector.AddToTail({5, 10.0f}); myVector.RemoveAll();