Add reserve() function to limited_priority_queue.

This commit is contained in:
vng 2012-02-10 13:50:45 +03:00 committed by Alex Zolotarev
parent a965bc8474
commit f822b92a97

View file

@ -76,6 +76,8 @@ public:
swap(m_compare, queue.m_compare);
}
void reserve(size_t n) { m_queue.reserve(n); }
private:
vector<T> m_queue;
size_t m_maxSize;