Add equal_p method for m-prioqueue
This commit is contained in:
1 parent
24f5739a3b
commit
19ff6bfeac
1 file changed
+7
-1
+7
-1
@@ -349,7 +349,13 @@
|
|||||||
\
|
\
|
||||||
M_IF_METHOD(EQUAL, oplist) \
|
M_IF_METHOD(EQUAL, oplist) \
|
||||||
( \
|
( \
|
||||||
/* EQUAL & CMP may be uncorrelated */ \
|
/* EQUAL & CMP may be uncorrelated */ \
|
||||||
|
static inline bool \
|
||||||
|
M_C(name, _equal_p)(prioqueue_t const p, prioqueue_t const q) \
|
||||||
|
{ \
|
||||||
|
return M_C(name, _array_equal_p)(p->array, q->array); \
|
||||||
|
} \
|
||||||
|
\
|
||||||
static inline bool \
|
static inline bool \
|
||||||
M_C(name, _erase)(prioqueue_t p, type x) \
|
M_C(name, _erase)(prioqueue_t p, type x) \
|
||||||
{ \
|
{ \
|
||||||
|
|||||||
Reference in new issue
Block a user