#include <iostream>
using namespace std;

#include "victor.hpp"

int main()
{
    cout << "vector power trip\n";

    victor<int>test(5);
    test.push(6);
    test.push(4);
    test.push(5);
    test.push(7);

    victor<int>::iterator it = test.begin();
    while(it)
    {
        cout << it->get() << endl;
        if (it->get() == 4)
            test.remove(it);
        it = it->next();
    }
    cout << endl;

    it = test.begin();
    while(it)
    {
        cout << it->get() << endl;
        if (it->get() == 4)
            test.remove(it);
        it = it->next();
    }

    cout << endl << test.getAt(2) << endl;
    return 0;
}
