| Index: compiled/StringMap.h |
| =================================================================== |
| --- a/compiled/StringMap.h |
| +++ b/compiled/StringMap.h |
| @@ -232,16 +232,21 @@ |
| { |
| return const_iterator(&mBuckets[mBucketCount], &mBuckets[mBucketCount]); |
| } |
| size_type size() const |
| { |
| return mEntryCount; |
| } |
| + |
| + void clear() |
| + { |
| + resize(0); |
|
sergei
2017/10/02 12:02:33
I'm not sure that `resize` expects a value, lower
sergei
2017/10/04 08:54:31
This is not addressed.
sergei
2017/10/06 09:33:56
What about creation of an `init(size_type expected
hub
2017/10/06 13:49:16
Done.
hub
2017/10/06 13:49:16
that's the approach I took.
|
| + } |
| }; |
| struct StringSetEntry |
| { |
| StringSetEntry() {} |
| StringSetEntry(const String& key) |
| : first(key) |
| { |