String intern table and support for unordered_map
Change-Id: I22d86d060780552675c5d7f14a98ffde480eac82
diff --git a/src/zip_archive.h b/src/zip_archive.h
index 9eb2948..858afe0 100644
--- a/src/zip_archive.h
+++ b/src/zip_archive.h
@@ -26,6 +26,7 @@
#include "logging.h"
#include "scoped_ptr.h"
#include "stringpiece.h"
+#include "unordered_map.h"
namespace art {
@@ -183,8 +184,8 @@
uint16_t num_entries_;
off_t dir_offset_;
scoped_ptr<MemMap> dir_map_;
- // TODO: unordered map
- std::map<StringPiece, const uint8_t*> dir_entries_;
+ typedef std::tr1::unordered_map<StringPiece, const uint8_t*> DirEntries;
+ DirEntries dir_entries_;
friend class ZipEntry;
};