mirror of
https://github.com/Z3Prover/z3
synced 2025-04-06 17:44:08 +00:00
port updates from poly/polysat
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
e580c384b8
commit
70d4f32ffd
|
@ -223,6 +223,16 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
class dll_elements {
|
||||
T const* m_list;
|
||||
public:
|
||||
dll_elements(T const* list) : m_list(list) {}
|
||||
dll_iterator<T> begin() const { return dll_iterator<T>::mk_begin(m_list); }
|
||||
dll_iterator<T> end() const { return dll_iterator<T>::mk_end(m_list); }
|
||||
};
|
||||
|
||||
|
||||
template < typename T
|
||||
, typename U = std::enable_if_t<std::is_base_of_v<dll_base<T>, T>> // should only match if T actually inherits from dll_base<T>
|
||||
>
|
||||
|
|
|
@ -68,6 +68,8 @@ public:
|
|||
void reset() {
|
||||
m_queue.reset();
|
||||
}
|
||||
|
||||
bool contains(var v) const { return m_queue.contains(v); }
|
||||
|
||||
bool empty() const { return m_queue.empty(); }
|
||||
|
||||
|
|
Loading…
Reference in a new issue