use stxxl as external data store instead of hand-rolled code in /tmp

This commit is contained in:
Dennis Luxen
2014-07-28 15:58:50 +02:00
parent 4990e544cf
commit 2bebed44ff
5 changed files with 20 additions and 304 deletions
+11
View File
@@ -296,6 +296,17 @@ class DeallocatingVector
const std::size_t _index = current_size % ELEMENTS_PER_BLOCK;
return (bucket_list[_bucket][_index]);
}
template<class InputIterator>
const inline void append(InputIterator first, const InputIterator last)
{
InputIterator position = first;
while (position != last)
{
push_back(*position);
++position;
}
}
};
#endif /* DEALLOCATINGVECTOR_H_ */