Merge branch 'master' into fs_emboss

This commit is contained in:
Filip Sykala 2022-05-11 20:49:21 +02:00
commit 1e6483827f

View File

@ -17,6 +17,14 @@ public:
{}
~MutablePriorityQueue() { clear(); }
MutablePriorityQueue(MutablePriorityQueue &&) = default;
MutablePriorityQueue& operator=(MutablePriorityQueue &&) = default;
// This class modifies the outside data through the m_index_setter
// and thus it should not be copied. The semantics are similar to std::unique_ptr
MutablePriorityQueue(const MutablePriorityQueue &) = delete;
MutablePriorityQueue& operator=(const MutablePriorityQueue &) = delete;
void clear();
void reserve(size_t cnt) { m_heap.reserve(cnt); }
void push(const T &item);