diff --git a/public/tier1/utlvector.h b/public/tier1/utlvector.h index 95fcfeb6..d5b0c126 100644 --- a/public/tier1/utlvector.h +++ b/public/tier1/utlvector.h @@ -1,4 +1,4 @@ -//====== Copyright © 1996-2005, Valve Corporation, All rights reserved. =======// +//====== Copyright © 1996-2005, Valve Corporation, All rights reserved. =======// // // Purpose: // @@ -76,6 +76,7 @@ public: // Adds an element, uses default constructor int AddToHead(); int AddToTail(); + T* AddToTailGetPtr(); int InsertBefore( int elem ); int InsertAfter( int elem ); @@ -762,6 +763,12 @@ inline int CUtlVector::AddToTail() return InsertBefore( m_Size ); } +template< typename T, class A > +inline T* CUtlVector::AddToTailGetPtr() +{ + return &Element(AddToTail()); +} + template< typename T, class A > inline int CUtlVector::InsertAfter( int elem ) {