]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/iterator/example/transform_iterator_example.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / iterator / example / transform_iterator_example.cpp
index 6f51f014442b4e507671564c92611da7c41dc4bd..ce1b413b8fe1e0acb7c45def1fab56688b3a9acf 100644 (file)
 namespace boost {
 
   template <class Operation> 
-  class binder1st
-    : public std::unary_function<typename Operation::second_argument_type,
-                                 typename Operation::result_type> {
+  class binder1st {
+  public:
+    typedef typename Operation::result_type result_type;
+    typedef typename Operation::second_argument_type argument_type;
   protected:
     Operation op;
     typename Operation::first_argument_type value;
@@ -29,7 +30,7 @@ namespace boost {
         : op(x), value(y) {}
     typename Operation::result_type
     operator()(const typename Operation::second_argument_type& x) const {
-      return op(value, x); 
+      return op(value, x);
     }
   };
 
@@ -72,5 +73,3 @@ main(int, char*[])
   
   return 0;
 }
-
-