File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -223,6 +223,16 @@ class dll_iterator {
223
223
}
224
224
};
225
225
226
+ template <typename T>
227
+ class dll_elements {
228
+ T const * m_list;
229
+ public:
230
+ dll_elements (T const * list) : m_list(list) {}
231
+ dll_iterator<T> begin () const { return dll_iterator<T>::mk_begin (m_list); }
232
+ dll_iterator<T> end () const { return dll_iterator<T>::mk_end (m_list); }
233
+ };
234
+
235
+
226
236
template < typename T
227
237
, 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>
228
238
>
Original file line number Diff line number Diff line change @@ -68,6 +68,8 @@ class var_queue {
68
68
void reset () {
69
69
m_queue.reset ();
70
70
}
71
+
72
+ bool contains (var v) const { return m_queue.contains (v); }
71
73
72
74
bool empty () const { return m_queue.empty (); }
73
75
You can’t perform that action at this time.
0 commit comments