diff options
Diffstat (limited to 'mp/src/public/tier1/utlvector.h')
| -rw-r--r-- | mp/src/public/tier1/utlvector.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mp/src/public/tier1/utlvector.h b/mp/src/public/tier1/utlvector.h index 1f2fe6e1..180b51e4 100644 --- a/mp/src/public/tier1/utlvector.h +++ b/mp/src/public/tier1/utlvector.h @@ -80,6 +80,12 @@ public: int Count() const; int Size() const; // don't use me! + /// are there no elements? For compatibility with lists. + inline bool IsEmpty( void ) const + { + return ( Count() == 0 ); + } + // Is element index valid? bool IsValidIndex( int i ) const; static int InvalidIndex(); |