aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-01-23 00:27:22 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-01-23 00:27:22 +0000
commitf45f17c9a2fc98091b8e69e7681beb34e26d440d (patch)
tree9d8e1a46cfeae20796e15acb7a350a892daf159a
parentd54170b749909b92f5c881025e236961bc0dc54b (diff)
downloadpaludis-f45f17c9a2fc98091b8e69e7681beb34e26d440d.tar.gz
paludis-f45f17c9a2fc98091b8e69e7681beb34e26d440d.tar.xz
Add set->clear(). (skoegl)
-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 6a68e06..2229d05 100644
--- a/paludis/util/set-impl.hh
+++ b/paludis/util/set-impl.hh
@@ -139,4 +139,11 @@ paludis::Set<T_, C_>::erase(const T_ & t)
_imp->set.erase(t);
}
+template <typename T_, typename C_>
+void
+paludis::Set<T_, C_>::clear()
+{
+ _imp->set.clear();
+}
+
#endif
diff --git a/paludis/util/set.hh b/paludis/util/set.hh
index 5e63e1c..f4a190f 100644
--- a/paludis/util/set.hh
+++ b/paludis/util/set.hh
@@ -101,6 +101,7 @@ namespace paludis
void insert(const T_ &);
void erase(const T_ &);
+ void clear();
///\}
};