Add stream output for multimap/set.
authorMichael Andres <ma@suse.de>
Mon, 4 Apr 2011 11:07:20 +0000 (13:07 +0200)
committerMichael Andres <ma@suse.de>
Mon, 4 Apr 2011 13:33:55 +0000 (15:33 +0200)
zypp/base/LogTools.h

index 953da5c..a1e257c 100644 (file)
@@ -27,7 +27,7 @@
 ///////////////////////////////////////////////////////////////////
 namespace zypp
 { /////////////////////////////////////////////////////////////////
-  
+
   using std::endl;
 
   /** Print range defined by iterators (multiline style).
@@ -129,6 +129,10 @@ namespace zypp
     { return dumpRange( str, obj.begin(), obj.end() ); }
 
   template<class _Tp>
+    std::ostream & operator<<( std::ostream & str, const std::multiset<_Tp> & obj )
+    { return dumpRange( str, obj.begin(), obj.end() ); }
+
+  template<class _Tp>
     std::ostream & operator<<( std::ostream & str, const std::list<_Tp> & obj )
     { return dumpRange( str, obj.begin(), obj.end() ); }
 
@@ -333,6 +337,10 @@ namespace zypp
     std::ostream & operator<<( std::ostream & str, const std::tr1::unordered_map<_Key, _Tp> & obj )
     { return str << dumpMap( obj ); }
 
+  template<class _Key, class _Tp>
+    std::ostream & operator<<( std::ostream & str, const std::multimap<_Key, _Tp> & obj )
+    { return str << dumpMap( obj ); }
+
   /** Print stream status bits.
    * Prints the values of a streams \c good, \c eof, \c failed and \c bad bit.
    *