mirror of
https://github.com/Z3Prover/z3
synced 2025-05-08 00:05:46 +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:
parent
50cf321171
commit
46f8b15c14
3 changed files with 12 additions and 2 deletions
|
@ -66,10 +66,14 @@ public:
|
|||
return m_ptr;
|
||||
}
|
||||
|
||||
operator bool() const {
|
||||
explicit operator bool() const {
|
||||
return m_ptr != nullptr;
|
||||
}
|
||||
|
||||
bool operator!() const {
|
||||
return m_ptr == nullptr;
|
||||
}
|
||||
|
||||
const T & operator*() const {
|
||||
return *m_ptr;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue