Perfect way to delete a simple std map of ints and strings
arrays, c++, dictionary
Solution
Since you have allocated 100 `std::map`s with `new[]`, you must deallocate them with `delete[]`:
delete[] myMap;
For every `new`/`new[]`, there must be a `delete`/`delete[]` (respectively).
Problem
My std::map looks like this. ``` std::map<int, std::string> *myMap = new std::map<int, std::string>[100]; ``` How do I delete this? Is `delete myMap` enough?