diff --git a/set/dset.hpp b/set/dset.hpp index 79b33c00..2c10acab 100644 --- a/set/dset.hpp +++ b/set/dset.hpp @@ -68,7 +68,15 @@ namespace cruft::set { /// /// Items must be in sorted order, and must be a subset of this /// container. - void erase (std::span); + void erase (std::span rhs) + { + *this = *this - rhs; + } + + void erase (ValueT const &val) + { + erase (std::span (&val, 1)); + } /// Tests if the list is a subset of this container. ///