dset: forward only the live data for contains with dset

This commit is contained in:
Danny Robson 2020-09-22 07:57:35 +10:00
parent 2d6d924d66
commit dd281fbe1e

View File

@ -82,7 +82,7 @@ namespace cruft::set {
/// supplied store.
bool contains (dset const &rhs) const
{
return contains (rhs.m_data);
return contains (std::span<ValueT const> {rhs.m_data.data (), rhs.m_size});
}
std::size_t count (ValueT const &val) const