http://stxxl.sourceforge.net
<daniel.feist@student.kit.edu>
http://www.boost.org/LICENSE_1_0.txt
#include <stxxl/deque>
#include <iostream>
int main()
{
typedef stxxl::deque<int> deque;
deque my_deque;
my_deque.push_front(2);
my_deque.push_front(11);
my_deque.push_back(5);
my_deque.push_back(8);
std::cout << "return 'first' element: " << my_deque.front() << std::endl;
std::cout << "return 'last' element: " << my_deque.back() << std::endl;
std::cout << "random access: " << my_deque[2] << std::endl;
stxxl::deque_iterator<deque> deque_iterator = my_deque.begin();
while (!my_deque.empty())
{
std::cout << *deque_iterator << " ";
++deque_iterator;
my_deque.pop_front();
}
return 0;
}