fork download
  1. #include <map>
  2. #include <utility>
  3.  
  4.  
  5. class AAA {
  6.  
  7. const int ci;
  8.  
  9. AAA();
  10.  
  11. public:
  12. AAA(int c) : ci(c) {}
  13. };
  14.  
  15. class BBB {
  16.  
  17. std::map<int, AAA> AAAmap;
  18.  
  19. public:
  20. int foo(int k, int c) {
  21. AAAmap.insert(std::make_pair(k, AAA(c)));
  22. }
  23. };
  24.  
  25.  
  26. int main() {
  27. BBB b;
  28. b.foo(1, 2);
  29. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
Standard output is empty