We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd38d46 commit 58a749dCopy full SHA for 58a749d
1 file changed
src/array19.lib/array19/DynamicSortedSet.h
@@ -20,6 +20,8 @@ template<class T, class Less = std::less<>> struct DynamicSortedSet {
20
return b != e;
21
}
22
23
+ operator SliceOf<T const>() const { return SliceOf{begin(), count()}; }
24
+
25
void add(T const& v) {
26
auto [b, e] = std::equal_range(m.amendBegin(), m.amendEnd(), v, Less{});
27
if (b == e) {
0 commit comments