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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user