From 19ff6bfeac7ed2abe588d95ad63d945a33077e98 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sun, 15 Nov 2020 09:39:01 +0100 Subject: [PATCH] Add equal_p method for m-prioqueue --- m-prioqueue.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/m-prioqueue.h b/m-prioqueue.h index fba0db88..6b6f74af 100644 --- a/m-prioqueue.h +++ b/m-prioqueue.h @@ -349,7 +349,13 @@ \ 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 \ M_C(name, _erase)(prioqueue_t p, type x) \ { \