mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-20 04:26:03 +08:00
Return back iterator access for CUtlLeanVector
This commit is contained in:
@ -459,6 +459,9 @@ public:
|
|||||||
bool IsValidIterator( const Iterator_t &it ) const { return this->IsIdxValid( it.index ); }
|
bool IsValidIterator( const Iterator_t &it ) const { return this->IsIdxValid( it.index ); }
|
||||||
Iterator_t InvalidIterator() const { return Iterator_t( InvalidIndex() ); }
|
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
|
// element access
|
||||||
T& operator[]( int i );
|
T& operator[]( int i );
|
||||||
const T& operator[]( int i ) const;
|
const T& operator[]( int i ) const;
|
||||||
|
Reference in New Issue
Block a user