diff options
Diffstat (limited to 'src/sortdict.h')
-rw-r--r-- | src/sortdict.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sortdict.h b/src/sortdict.h index 77991ea..e78d038 100644 --- a/src/sortdict.h +++ b/src/sortdict.h @@ -169,6 +169,12 @@ class SDict return m_dict->find(key); } + /*! Equavalent to find(). */ + T *operator[](const char *key) + { + return m_dict->find(key); + } + /*! Returns the item at position \a i in the sorted dictionary */ T *at(uint i) { |