fork download
  1. #include <iostream>
  2. #include <map>
  3. using namespace std;
  4.  
  5. int main() {
  6. map<int, string> m1 = {{1, "A"}};
  7. bool check = m1.empty();
  8. m1.clear();
  9. bool check2 = m1.empty();
  10. }
  11.  
Success #stdin #stdout 0s 5308KB
stdin
Standard input is empty
stdout
Standard output is empty