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

ref/ref_vector minor convenience changes (#5322)

* Add ref_vector_core::push_back(ref<T>&&)

* Make operator bool() explicit
This commit is contained in:
Jakob Rath 2021-05-31 19:27:46 +02:00 committed by GitHub
parent 50cf321171
commit 46f8b15c14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 2 deletions

View file

@ -153,7 +153,7 @@ public:
expr_ref_vector const &get_cube();
void update_cube(pob_ref const &p, expr_ref_vector &cube);
bool has_pob() {return m_pob;}
bool has_pob() {return !!m_pob;}
pob_ref &get_pob() {return m_pob;}
unsigned weakness() {return m_weakness;}