From 66ddaca410cb7ac2289955fcc0f9b22a330941ba Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Thu, 3 Jul 2025 09:15:13 -0400 Subject: [PATCH] refactor: PriorityQueue::Swap make noexcept --- src/lib/base/PriorityQueue.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/base/PriorityQueue.h b/src/lib/base/PriorityQueue.h index cbf551701..bfbc71132 100644 --- a/src/lib/base/PriorityQueue.h +++ b/src/lib/base/PriorityQueue.h @@ -76,13 +76,13 @@ public: } //! Swap contents with another priority queue - void swap(PriorityQueue &q) + void swap(PriorityQueue &q) noexcept { c.swap(q.c); } //! Swap contents with another container - void swap(Container &c2) + void swap(Container &c2) noexcept { c.swap(c2); std::make_heap(c.begin(), c.end(), comp);