]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/container/test/check_equal_containers.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / container / test / check_equal_containers.hpp
index 617089d1ffb977d252f21f12af5289dd999332f3..758780a7f7703b64b013caeaa670033b9e882972 100644 (file)
@@ -15,6 +15,7 @@
 #include <boost/container/detail/pair.hpp>
 #include <boost/container/detail/mpl.hpp>
 #include <boost/move/unique_ptr.hpp>
+#include <boost/move/utility_core.hpp>
 
 #include <cstddef>
 #include <boost/container/detail/iterator.hpp>
@@ -108,6 +109,47 @@ bool CheckEqualPairContainers(const MyBoostCont &boostcont, const MyStdCont &std
    return true;
 }
 
+struct less_transparent
+{
+   typedef void is_transparent;
+
+   template<class T, class U>
+   bool operator()(const T &t, const U &u) const
+   {
+      return t < u;
+   }
+};
+
+struct equal_transparent
+{
+   typedef void is_transparent;
+
+   template<class T, class U>
+   bool operator()(const T &t, const U &u) const
+   {
+      return t == u;
+   }
+};
+
+struct move_op
+{
+   template<class T>
+   typename boost::move_detail::add_rvalue_reference<T>::type operator()(T &t)
+   {
+      return boost::move(t);
+   }
+};
+
+struct const_ref_op
+{
+   template<class T>
+   const T & operator()(const T &t)
+   {
+      return t;
+   }
+
+};
+
 }  //namespace test{
 }  //namespace container {
 }  //namespace boost{