From f1b0c298159d7683bf5d61851e432b72eb3e37bd Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 29 Aug 2013 10:11:59 -0700 Subject: [PATCH] Sync AMTL. --- public/amtl/am-hashset.h | 3 +++ public/amtl/am-inlinelist.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/public/amtl/am-hashset.h b/public/amtl/am-hashset.h index 6edbdea1..13f8eb8f 100644 --- a/public/amtl/am-hashset.h +++ b/public/amtl/am-hashset.h @@ -101,6 +101,9 @@ class HashSet : public AllocPolicy bool add(Insert &i, const K &key) { return table_.add(i, key); } + bool add(Insert &i, Moveable key) { + return table_.add(i, key); + } // 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 diff --git a/public/amtl/am-inlinelist.h b/public/amtl/am-inlinelist.h index 56aa4204..4e9e1ee7 100644 --- a/public/amtl/am-inlinelist.h +++ b/public/amtl/am-inlinelist.h @@ -123,7 +123,7 @@ class InlineList return iterator(&head_); } - void erase(Node *t) { + void remove(Node *t) { t->prev_->next_ = t->next_; t->next_->prev_ = t->prev_; }