3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-10 13:10:50 +00:00

simplify some constructors/destructors

This commit is contained in:
Nuno Lopes 2021-05-23 12:39:49 +01:00
parent 79201e5ce6
commit 9eb566b401
3 changed files with 11 additions and 49 deletions

View file

@ -22,8 +22,8 @@ Revision History:
template<typename T>
class scoped_vector {
unsigned m_size;
unsigned m_elems_start;
unsigned m_size = 0;
unsigned m_elems_start = 0;
unsigned_vector m_sizes;
vector<T> m_elems;
unsigned_vector m_elems_lim;
@ -31,8 +31,6 @@ class scoped_vector {
unsigned_vector m_src, m_dst;
unsigned_vector m_src_lim;
public:
scoped_vector(): m_size(0), m_elems_start(0) {}
// m_index : External-Index -> Internal-Index
// m_index.size() = max(m_sizes)
// m_src[i] -> m_dst[i] // trail into m_index updates
@ -183,4 +181,3 @@ private:
m_elems_start <= m_elems.size();
}
};