From 3712de5ee98e8e3e8879fd304fefd3da7df920cc Mon Sep 17 00:00:00 2001 From: Vito G Castellana Date: Thu, 8 Jun 2023 17:23:31 -0700 Subject: [PATCH] [#204] fixed a bug in local multimap print method --- include/shad/data_structures/local_multimap.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/include/shad/data_structures/local_multimap.h b/include/shad/data_structures/local_multimap.h index 362eccff..b4dbfe11 100644 --- a/include/shad/data_structures/local_multimap.h +++ b/include/shad/data_structures/local_multimap.h @@ -918,8 +918,8 @@ template void LocalMultimap::PrintAllEntries() { for (auto itr = begin(); itr != end(); ++itr) { auto key = (*itr).first; - std::cout << std::get<0>(key) << " " << std::get<1>(key); - std::cout << "\n"; + auto value = (*itr).second; + std::cout << "[" << key << "]: " << value << std::endl; } } @@ -927,10 +927,7 @@ template void LocalMultimap::PrintAllKeys() { for (auto itr = key_begin(); itr != key_end(); ++itr) { auto key = (*itr).first; - auto value = (*itr).second; - std::cout << value.size() << " " << std::get<0>(key) << " " - << std::get<1>(key); - std::cout << "\n"; + std::cout << key << std::endl; } }