mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 20:05:51 +00:00
simplifications to refs
This commit is contained in:
parent
8e4ef19f45
commit
edf0df634d
5 changed files with 14 additions and 14 deletions
|
@ -58,6 +58,12 @@ public:
|
|||
inc_ref(n);
|
||||
m_buffer.push_back(n);
|
||||
}
|
||||
|
||||
template <typename M>
|
||||
void push_back(obj_ref<T,M> && n) {
|
||||
m_buffer.push_back(n.get());
|
||||
n.steal();
|
||||
}
|
||||
|
||||
void pop_back() {
|
||||
SASSERT(!m_buffer.empty());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue