I am developing an external memory data structure, and I need to put the data into a vector structure that automatically make swapping (maybe using LRU strategy) in order to keep a fixed RAM memory. I have tried the stxxl vector structure, but the problem is that it cannot store dynamic structures like std::vector
. This doesn't work:
stxxl::vector< std::vector<T> >
Is there any library of external memory structure that could deal with these kind of elements?
Template parameter of
stxxl::vector
is the type of contained items, butstd::vector
is not a type, its missing it's template argument.Try e.g.
stxxl::vector<std::vector<int> >
, or create an enclosing template class aroundstxxl::vector
if you want to parametrize the itemtype ofstd::vector
.UPDATE: After some research, I found this on the Stxxl: FAQ's first page http://algo2.iti.kit.edu/stxxl/trunk/FAQ.html