aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-09-21 20:50:44 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-09-21 20:50:44 +0000
commit367ff7ba37f97c4b639159ad4e558f1d1df13cfa (patch)
treee3c6766fddc8471a63d94753dcccd10ee2ec870f
parentd504ed45adc497c17a56b4b28366d13d640aed4c (diff)
downloadpaludis-367ff7ba37f97c4b639159ad4e558f1d1df13cfa.tar.gz
paludis-367ff7ba37f97c4b639159ad4e558f1d1df13cfa.tar.xz
Add set.erase
-rw-r--r--paludis/util/set-impl.hh7
-rw-r--r--paludis/util/set.hh1
2 files changed, 8 insertions, 0 deletions
diff --git a/paludis/util/set-impl.hh b/paludis/util/set-impl.hh
index d8f8aae..467770d 100644
--- a/paludis/util/set-impl.hh
+++ b/paludis/util/set-impl.hh
@@ -110,4 +110,11 @@ paludis::Set<T_, C_>::insert(const T_ & t)
_imp->set.insert(t);
}
+template <typename T_, typename C_>
+void
+paludis::Set<T_, C_>::erase(const T_ & t)
+{
+ _imp->set.erase(t);
+}
+
#endif
diff --git a/paludis/util/set.hh b/paludis/util/set.hh
index 08fb0ad..4ca949e 100644
--- a/paludis/util/set.hh
+++ b/paludis/util/set.hh
@@ -59,6 +59,7 @@ namespace paludis
Inserter inserter();
void insert(const T_ &);
+ void erase(const T_ &);
};
}