11 #ifndef TLX_LOGGER_MAP_HEADER 12 #define TLX_LOGGER_MAP_HEADER 20 template <
typename K,
typename V,
typename C,
typename A>
24 static void print(std::ostream& os,
const std::map<K, V, C, A>& data) {
26 for (
typename std::map<K, V, C, A>::const_iterator it = data.begin();
27 it != data.end(); ++it)
29 if (it != data.begin()) os <<
',';
38 template <
typename K,
typename V,
typename C,
typename A>
42 static void print(std::ostream& os,
const std::multimap<K, V, C, A>& data) {
44 for (
typename std::multimap<K, V, C, A>::const_iterator it = data.begin();
45 it != data.end(); ++it)
47 if (it != data.begin()) os <<
',';
58 #endif // !TLX_LOGGER_MAP_HEADER