Imported Upstream version 16.3.2
[platform/upstream/libzypp.git] / devel / devel.ma / Printing.h
index b5520dc..4e42a55 100644 (file)
 #include <zypp/base/Algorithm.h>
 #include <zypp/base/Functional.h>
 
+using std::endl;
+
+///////////////////////////////////////////////////////////////////
+
+struct Print
+{
+  template<class Tp>
+    bool operator()( const Tp & val_r ) const
+    { USR << val_r << endl; return true; }
+};
+
 ///////////////////////////////////////////////////////////////////
 
-template<class _Tp>
-  struct PrintOn : public std::unary_function<_Tp, bool>
+template<class Tp>
+  struct PrintOn : public std::unary_function<Tp, bool>
   {
-    bool operator()( const _Tp & obj ) const
+    bool operator()( const Tp & obj ) const
     {
       if ( _leadNL )
         _str << std::endl << _prfx << obj;