3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00
This commit is contained in:
Nikolaj Bjorner 2020-12-04 16:59:05 -08:00
parent b0fd25f041
commit 4d55f83654
16 changed files with 107 additions and 54 deletions

View file

@ -596,6 +596,14 @@ public:
if (s > size())
resize(s);
}
struct scoped_stack {
vector& s;
unsigned sz;
scoped_stack(vector& s):s(s), sz(s.size()) {}
~scoped_stack() { s.shrink(sz); }
};
};
template<typename T>