mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +00:00
Add goodies
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
81807c7001
commit
1712f0a33b
|
@ -231,8 +231,13 @@ public:
|
||||||
SASSERT(size() == nsz);
|
SASSERT(size() == nsz);
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
buffer & operator=(buffer const & other) {
|
||||||
buffer& operator=(buffer const&);
|
if (this == &other)
|
||||||
|
return *this;
|
||||||
|
reset();
|
||||||
|
append(other);
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename T, unsigned INITIAL_SIZE=16>
|
template<typename T, unsigned INITIAL_SIZE=16>
|
||||||
|
|
|
@ -243,6 +243,10 @@ public:
|
||||||
m_ptr = 0;
|
m_ptr = 0;
|
||||||
return tmp;
|
return tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void swap(scoped_ptr & p) {
|
||||||
|
std::swap(m_ptr, p.m_ptr);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename T1, typename T2>
|
template<typename T1, typename T2>
|
||||||
|
|
Loading…
Reference in a new issue