Sync AMTL.

This commit is contained in:
David Anderson 2013-08-29 10:11:59 -07:00
parent b261dde858
commit f1b0c29815
2 changed files with 4 additions and 1 deletions

View File

@ -101,6 +101,9 @@ class HashSet : public AllocPolicy
bool add(Insert &i, const K &key) { bool add(Insert &i, const K &key) {
return table_.add(i, key); return table_.add(i, key);
} }
bool add(Insert &i, Moveable<K> key) {
return table_.add(i, key);
}
// This can be used to avoid compiler constructed temporaries, since AMTL // This can be used to avoid compiler constructed temporaries, since AMTL
// does not yet support move semantics. If you use this, the key and value // does not yet support move semantics. If you use this, the key and value

View File

@ -123,7 +123,7 @@ class InlineList
return iterator(&head_); return iterator(&head_);
} }
void erase(Node *t) { void remove(Node *t) {
t->prev_->next_ = t->next_; t->prev_->next_ = t->next_;
t->next_->prev_ = t->prev_; t->next_->prev_ = t->prev_;
} }