// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
#include <iostream>
#include <vector>
#include <list>
#include <set>

using namespace std;

int main()
{
    vector<int> v;
    v.push_back(1);
    v.push_back(2);
    v.push_back(2);
    v.push_back(3);
    v.push_back(3);
    v.push_back(3);
    cout << "vector:" << endl;
    for(vector<int>::iterator it = v.begin(); it != v.end(); it++)
    {
        cout << *it << endl;
    }
    list<int> lst;
    lst.push_back(1);
    lst.push_back(2);
    lst.push_back(2);
    lst.push_back(3);
    lst.push_back(3);
    lst.push_back(3);
    cout << "list:" << endl;
    for(list<int>::iterator it = lst.begin(); it != lst.end(); it++)
    {
        cout << *it << endl;
    }
    set<int> s;
    s.insert(1);
    s.insert(2);
    s.insert(2);
    s.insert(3);
    s.insert(3);
    s.insert(3);
    cout << "set:" << endl;
    for(set<int>::iterator it = s.begin(); it != s.end(); it++)
    {
        cout << *it << endl;
    }
    return 0;
}
