3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00

add code review to constraint

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2021-08-30 11:11:55 -07:00
parent ef297ced13
commit 7ea1bf12b6
4 changed files with 32 additions and 16 deletions

View file

@ -81,6 +81,7 @@ public:
m_vector[m_vector.size()-1] = tmp;
}
ptr_vector<T> detach() {
ptr_vector<T> tmp(std::move(m_vector));
SASSERT(m_vector.empty());