Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: compiled/StringMap.h

Issue 29384812: Issue 4127 - [emscripten] Convert subscription classes to C++ - Part 1 (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore
Patch Set: Addressed comments Created April 13, 2017, 1:02 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « compiled/String.h ('k') | compiled/bindings.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiled/StringMap.h
===================================================================
--- a/compiled/StringMap.h
+++ b/compiled/StringMap.h
@@ -227,16 +227,21 @@ namespace StringMap_internal
{
return const_iterator(&mBuckets[0], &mBuckets[mBucketCount]);
}
const_iterator end() const
{
return const_iterator(&mBuckets[mBucketCount], &mBuckets[mBucketCount]);
}
+
+ size_type size() const
+ {
+ return mEntryCount;
+ }
};
struct StringSetEntry
{
StringSetEntry() {}
StringSetEntry(const String& key)
: first(key)
{
« no previous file with comments | « compiled/String.h ('k') | compiled/bindings.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld