Better fix for iussue #136

This commit is contained in:
greg
2022-04-01 14:20:10 -04:00
parent 4368cd39f2
commit 8c2d84b138
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -7,7 +7,12 @@ using phmap::flat_hash_map;
int main()
{
// Create an unordered_map of three strings (that map to strings)
flat_hash_map<std::string, std::string> email;
flat_hash_map<std::string, std::string> email =
{
{ "tom", "tom@gmail.com"},
{ "jeff", "jk@gmail.com"},
{ "jim", "jimg@microsoft.com"}
};
// Iterate and print keys and values
for (const auto& n : email)