fork(1) download
  1. #include <vector>
  2. #include <map>
  3. #include <string>
  4. using namespace std;
  5.  
  6. struct comparer
  7. {
  8. bool operator()(const std::string x, const std::string y)
  9. {
  10. return x.compare(y)<0;
  11. }
  12. };
  13.  
  14.  
  15. int main(int argc, char **argv)
  16. {
  17. vector< map<string,int,comparer> > valMapVect;
  18. map<string,int,comparer> valMap;
  19.  
  20. valMapVect.push_back(valMap);
  21.  
  22. }
  23.  
Success #stdin #stdout 0s 3428KB
stdin
Standard input is empty
stdout
Standard output is empty