Return back iterator access for CUtlLeanVector

This commit is contained in:
GAMMACASE committed 2025-08-21 22:31:04 +03:00
1 parent de0c7e778e
commit d3febe1b16
1 file changed
+3
+3
View File
@@ -459,6 +459,9 @@ public:
bool IsValidIterator( const Iterator_t &it ) const { return this->IsIdxValid( it.index ); }
Iterator_t InvalidIterator() const { return Iterator_t( InvalidIndex() ); }
T &operator[]( const Iterator_t &it ) { return Element( it.index ); }
const T &operator[]( const Iterator_t &it ) const { return Element( it.index ); }
// element access
T& operator[]( int i );
const T& operator[]( int i ) const;