]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/detail/algorithm.hpp
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / boost / boost / detail / algorithm.hpp
index 3f9297bcab99ff6c260b1c96441111a6a177fe59..7793fb357e2c57eea8ca3631ad251273521ad9bd 100644 (file)
@@ -29,8 +29,8 @@
  */
 
 #ifndef BOOST_ALGORITHM_HPP
-# define BOOST_ALGORITHM_HPP
-# include <boost/detail/iterator.hpp>
+#define BOOST_ALGORITHM_HPP
+#include <boost/detail/iterator.hpp>
 // Algorithms on sequences
 //
 // The functions in this file have not yet gone through formal
 #include <boost/range/algorithm_ext/is_sorted.hpp>
 #include <boost/range/algorithm_ext/iota.hpp>
 
-namespace boost {
+namespace boost
+{
 
-  template <typename InputIterator, typename Predicate>
-  bool any_if(InputIterator first, InputIterator last, Predicate p)
-  {
+template < typename InputIterator, typename Predicate >
+bool any_if(InputIterator first, InputIterator last, Predicate p)
+{
     return std::find_if(first, last, p) != last;
-  }
+}
 
-  template <typename Container, typename Predicate>
-  bool any_if(const Container& c, Predicate p)
-  {
+template < typename Container, typename Predicate >
+bool any_if(const Container& c, Predicate p)
+{
     return any_if(boost::begin(c), boost::end(c), p);
-  }
+}
 
-  template <typename InputIterator, typename T>
-  bool container_contains(InputIterator first, InputIterator last, T value)
-  {
+template < typename InputIterator, typename T >
+bool container_contains(InputIterator first, InputIterator last, T value)
+{
     return std::find(first, last, value) != last;
-  }
-  template <typename Container, typename T>
-  bool container_contains(const Container& c, const T& value)
-  {
+}
+template < typename Container, typename T >
+bool container_contains(const Container& c, const T& value)
+{
     return container_contains(boost::begin(c), boost::end(c), value);
-  }
+}
 
 } // namespace boost