| Index: compiled/StringMap.h |
| =================================================================== |
| --- a/compiled/StringMap.h |
| +++ b/compiled/StringMap.h |
| @@ -227,16 +227,26 @@ namespace StringMap_internal |
| { |
| return const_iterator(&mBuckets[0], &mBuckets[mBucketCount]); |
| } |
| const_iterator end() const |
| { |
| return const_iterator(&mBuckets[mBucketCount], &mBuckets[mBucketCount]); |
| } |
| + |
| + size_type max_size() const |
|
sergei
2017/04/12 12:04:31
What about capacity instead of max_size, though ma
Wladimir Palant
2017/04/13 13:04:39
Ouch, I misread what std::map::max_size() does. Th
|
| + { |
| + return mBucketCount; |
| + } |
| + |
| + size_type size() const |
| + { |
| + return mEntryCount; |
| + } |
| }; |
| struct StringSetEntry |
| { |
| StringSetEntry() {} |
| StringSetEntry(const String& key) |
| : first(key) |
| { |