]> git.lyx.org Git - lyx.git/blobdiff - boost/boost/detail/algorithm.hpp
update to boost 1.39: add new files
[lyx.git] / boost / boost / detail / algorithm.hpp
index 376baeddac9e7ecc943a499847921aa0265dbf4b..252e9f461c54e2d4573bbbc28933ff9c419a17f3 100644 (file)
@@ -152,28 +152,14 @@ namespace boost {
   }
 
   template <typename InputIterator, typename T>
-  bool contains(InputIterator first, InputIterator last, T value)
+  bool container_contains(InputIterator first, InputIterator last, T value)
   {
     return std::find(first, last, value) != last;
   }
   template <typename Container, typename T>
-  bool contains(const Container& c, const T& value)
+  bool container_contains(const Container& c, const T& value)
   {
-    return contains(begin(c), end(c), value);
-  }
-
-  template <typename InputIterator, typename Predicate>
-  bool all(InputIterator first, InputIterator last, Predicate p)
-  {
-    for (; first != last; ++first)
-      if (!p(*first))
-        return false;
-    return true;
-  }
-  template <typename Container, typename Predicate>
-  bool all(const Container& c, Predicate p)
-  {
-    return all(begin(c), end(c), p);
+    return container_contains(begin(c), end(c), value);
   }
 
   template <typename Container, typename T>