how to easily check if a std::map and std::unordered_map contains the same elements
<p>I am writing a Google Test unit test, and I want to check if the content of an <code>unordered_map&lt;std::string, std::string&gt;</code> is the same as an <code>std::map&lt;std::string, std::string&gt;</code></p>

<p>I don't think <code>std::equal</code> will work, as elements in the <code>std::map</code> are sorted according a criterion. The order is not important.</p>