sequenced_set: add extract_set method

Can be useful if we want to reuse the set
when we are done with this sequenced_set
instance.
This commit is contained in:
Petr Gusev
2023-04-26 19:07:56 +04:00
parent 0567ab82ac
commit b2e5d8c21c

View File

@@ -129,6 +129,10 @@ public:
return _set;
}
auto extract_set() && noexcept {
return std::move(_set);
}
bool contains(const T& t) const noexcept {
return _set.contains(t);
}