extra scene tweaks

This commit is contained in:
2020-03-15 14:24:13 -04:00
parent 30966308ca
commit acdc19bbb9
2 changed files with 19 additions and 4 deletions

View File

@@ -61,6 +61,19 @@ public:
(*this)++;
return res;
}
auto operator--(int) {
std::next_permutation(bits.begin(), bits.end());
set_curr();
--at;
return *this;
}
auto operator--() &{
auto res = *this;
(*this)--;
return res;
}
};
template<class T>