Below is the file 'test.cc' from this revision. You can also download the file.


#include <ext/hash_map>
#include <vector>
#include <iostream>
#include "tokens.hh"

int
main (int argc, char *argv[])
{
    __gnu_cxx::hash_map<std::string, int> h;
    std::string blah("test"), cat("goat");

    h[blah] = 2;
    h[cat] = 23;
    std::cout << blah << " ::: " << h[blah] << ":::" << h[cat] << std::endl;

    return 0;
}