|
|
@ -239,8 +239,7 @@ class TypedStrTable { |
|
|
|
|
|
|
|
|
|
|
|
void Resize(size_t size_lg2) { table_.Resize(size_lg2); } |
|
|
|
void Resize(size_t size_lg2) { table_.Resize(size_lg2); } |
|
|
|
|
|
|
|
|
|
|
|
class iterator : public std::iterator<std::forward_iterator_tag, |
|
|
|
class iterator { |
|
|
|
std::pair<std::string, T> > { |
|
|
|
|
|
|
|
public: |
|
|
|
public: |
|
|
|
explicit iterator(TypedStrTable* table) : iter_(&table->table_) {} |
|
|
|
explicit iterator(TypedStrTable* table) : iter_(&table->table_) {} |
|
|
|
static iterator end(TypedStrTable* table) { |
|
|
|
static iterator end(TypedStrTable* table) { |
|
|
@ -312,8 +311,7 @@ class TypedIntTable { |
|
|
|
|
|
|
|
|
|
|
|
void Compact() { table_.Compact(); } |
|
|
|
void Compact() { table_.Compact(); } |
|
|
|
|
|
|
|
|
|
|
|
class iterator : public std::iterator<std::forward_iterator_tag, |
|
|
|
class iterator { |
|
|
|
std::pair<uintptr_t, T> > { |
|
|
|
|
|
|
|
public: |
|
|
|
public: |
|
|
|
explicit iterator(TypedIntTable* table) : iter_(&table->table_) {} |
|
|
|
explicit iterator(TypedIntTable* table) : iter_(&table->table_) {} |
|
|
|
static iterator end(TypedIntTable* table) { |
|
|
|
static iterator end(TypedIntTable* table) { |
|
|
|