11 #ifndef TLX_LOGGER_UNORDERED_MAP_HEADER 12 #define TLX_LOGGER_UNORDERED_MAP_HEADER 16 #include <unordered_map> 20 template <
typename K,
typename V,
typename H,
typename E,
typename A>
24 static void print(std::ostream& os,
25 const std::unordered_map<K, V, H, E, A>& data) {
27 for (
typename std::unordered_map<K, V, H, E, A>::const_iterator
28 it = data.begin(); it != data.end(); ++it)
30 if (it != data.begin()) os <<
',';
39 template <
typename K,
typename V,
typename H,
typename E,
typename A>
43 static void print(std::ostream& os,
44 const std::unordered_multimap<K, V, H, E, A>& data) {
46 for (
typename std::unordered_multimap<K, V, H, E, A>::const_iterator
47 it = data.begin(); it != data.end(); ++it)
49 if (it != data.begin()) os <<
',';
60 #endif // !TLX_LOGGER_UNORDERED_MAP_HEADER