#include
#includeIn this example, we define a map `myMap` with three key-value pairs. We then use the `std::erase_if` algorithm to remove all elements for which a specific predicate function returns `true`. The predicate function we define here checks whether the value of the pair is equal to `"second"`.