#include #include #include using namespace std; typedef map,allocator > > connMap; typedef map,allocator > > graph; graph cmap; map foo; int main() { string a("A"); string b("B"); string c("C"); cmap[a][b] = true; cmap[b][c] = false; int* x = new int(); *x = 3; foo["a"] = x; map::iterator it; cout << foo["a"] << endl; it = foo.find("blah"); if (it == foo.end()) cout << "WORKS!" << endl; if (foo["blah"] == NULL) cout << "WORKS!" << endl; cout << foo["blah"] << endl; cout << "(*************)" << endl; cout << "AB" << cmap[a][b] << endl; cout << "BC" << cmap[b][c] << endl; return 0; }