diff options
author | Nikias Bassen | 2023-02-06 12:10:23 -0800 |
---|---|---|
committer | Nikias Bassen | 2023-04-21 12:16:55 +0200 |
commit | 12c45a21b4f223ca2a4ccba42ade2366f4dbde5c (patch) | |
tree | 6884b1da1da49bc5ce5f2ea8ec9767d315905d0e /src/Dictionary.cpp | |
parent | 581db7f8215387cd722b9f06a5afbd4df9617072 (diff) | |
download | libplist-12c45a21b4f223ca2a4ccba42ade2366f4dbde5c.tar.gz libplist-12c45a21b4f223ca2a4ccba42ade2366f4dbde5c.tar.bz2 |
C++: Add dictionary and array size method
Thanks @Cryptiiiic for the contribution.
Diffstat (limited to 'src/Dictionary.cpp')
-rw-r--r-- | src/Dictionary.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Dictionary.cpp b/src/Dictionary.cpp index 4094d2c..5e76cb6 100644 --- a/src/Dictionary.cpp +++ b/src/Dictionary.cpp @@ -134,6 +134,10 @@ Dictionary::const_iterator Dictionary::end() const return _map.end(); } +const size_t Dictionary::size() const { + return _map.size(); +} + Dictionary::iterator Dictionary::Find(const std::string& key) { return _map.find(key); |