Home | History | Annotate | Download | only in pcrecpp

Lines Matching refs:map

9 #include <map>
38 typedef std::map<StringPiece, int> TestMap;
39 TestMap map;
41 map.insert(std::make_pair(p1, 0));
42 map.insert(std::make_pair(p2, 1));
43 map.insert(std::make_pair(p3, 2));
45 CHECK(map.size() == 3);
47 TestMap::const_iterator iter = map.begin();
54 CHECK(iter == map.end());
56 TestMap::iterator new_iter = map.find("zot");
57 CHECK(new_iter == map.end());
59 new_iter = map.find("bar");
60 CHECK(new_iter != map.end());
62 map.erase(new_iter);
63 CHECK(map.size() == 2);
65 iter = map.begin();
70 CHECK(iter == map.end());