author | Dmitriy Morozov <dmitriy@mrzv.org> |
Sun, 07 Feb 2010 10:46:23 -0800 | |
branch | dev |
changeset 200 | 73e8dce642be |
parent 55 | 7e71f5984931 |
child 201 | 4759535221ee |
permissions | -rw-r--r-- |
#include <utilities/eventqueue.h> #include <functional> #include <iostream> int main() { typedef EventQueue<int, std::less<int> > EQ; typedef EQ::iterator iterator; EQ queue; iterator i = queue.push(4); queue.push(2); queue.push(7); iterator j = queue.push(6); queue.push(5); queue.replace(i,8); queue.remove(j); while (!queue.empty()) { std::cout << *queue.top() << std::endl; queue.pop(); } }