diff options
| author | Max Horn | 2006-03-28 09:42:54 +0000 |
|---|---|---|
| committer | Max Horn | 2006-03-28 09:42:54 +0000 |
| commit | 9f93e5bb81a54a98eb7957209662f152e2962679 (patch) | |
| tree | ffd439f7aa7347bd7ba806c2131be458a7112ef1 /common/assocarray.h | |
| parent | 950c3451a2dbadffa6437e98a20eb3a4163216e2 (diff) | |
| download | scummvm-rg350-9f93e5bb81a54a98eb7957209662f152e2962679.tar.gz scummvm-rg350-9f93e5bb81a54a98eb7957209662f152e2962679.tar.bz2 scummvm-rg350-9f93e5bb81a54a98eb7957209662f152e2962679.zip | |
Renamed various container isEmpty() methods to empty() to match STL conventions
svn-id: r21472
Diffstat (limited to 'common/assocarray.h')
| -rw-r--r-- | common/assocarray.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/common/assocarray.h b/common/assocarray.h index 0e10ea7f4f..8505f48c19 100644 --- a/common/assocarray.h +++ b/common/assocarray.h @@ -140,9 +140,16 @@ public: // even allow in-place modifications of Key *new_all_keys(void) const; Val *new_all_values(void) const; + //const_iterator begin() const + //const_iterator end() const - - // TODO: There is no "remove(key)" method yet. + // TODO: There is no "remove" method yet. + //void remove(const Key &key); + + + bool empty() const { + return (_nele == 0); + } }; //------------------------------------------------------- |
