提交 631d1aaf 编写于 作者: Y youngwolf

Fix the misunderstanding of reserving memory via constructor of containers.

上级 b133acca
......@@ -44,7 +44,7 @@ private:
};
//Container must at least has the following functions (like std::list):
// Container() and Container(size_t) constructor
// Container() constructor
// empty, must be thread safe, but doesn't have to be consistent
// clear
// swap
......@@ -70,7 +70,6 @@ public:
using Container::empty;
queue() : total_size(0) {}
queue(size_t capacity) : Container(capacity), total_size(0) {}
//thread safe
bool is_thread_safe() const {return Lockable::is_lockable();}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册