#include#include
#includeIn this example, we create a new map and initialize it with three key-value pairs. We use the empty() function to check if it is empty or not. Since the map is not empty, the output will be "Map is not empty". The std::map container and the empty() function are part of the C++ Standard Template Library (STL) package.#include