mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
misc
This commit is contained in:
parent
b0fd25f041
commit
4d55f83654
16 changed files with 107 additions and 54 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue