This commit is contained in:
Hieu Hoang 2015-12-31 17:28:11 +00:00
parent 6435f15a14
commit 7d1aeaa601

View File

@ -79,7 +79,6 @@ class MemPool {
////////////////////////////////////////////////////////////////////////////////////////////////
template <typename T>
class ObjectPoolContiguous {
friend std::ostream& operator<<(std::ostream &, const ObjectPoolContiguous &);
public:
ObjectPoolContiguous(std::size_t initSize = 100000)
@ -152,16 +151,6 @@ class ObjectPoolContiguous {
ObjectPoolContiguous &operator=(const ObjectPoolContiguous &);
};
template <typename T>
std::ostream& operator<<(std::ostream &out, const ObjectPoolContiguous<T> &obj)
{
for (size_t i = 0; i < obj.size(); ++i) {
T &ele = obj.get(i);
out << ele;
}
return out;
}
//////////////////////////////////////////////////////////////////////////////////////////
template <typename T>
class MemPoolAllocator