Add additional valgrind supptressions
[senf.git] / boost / intrusive / ilist.hpp
index 3947a7b..67590ee 100644 (file)
@@ -1,7 +1,7 @@
 /////////////////////////////////////////////////////////////////////////////\r
 //\r
 // (C) Copyright Olaf Krzikalla 2004-2006.\r
-// (C) Copyright Ion Gaztañaga  2006-2007\r
+// (C) Copyright Ion Gazta�aga  2006-2007\r
 //\r
 // Distributed under the Boost Software License, Version 1.0.\r
 //    (See accompanying file LICENSE_1_0.txt or copy at\r
 #ifndef BOOST_INTRUSIVE_ILIST_HPP\r
 #define BOOST_INTRUSIVE_ILIST_HPP\r
 \r
-#include <boost/intrusive/detail/config_begin.hpp>\r
+#include "detail/config_begin.hpp"\r
 #include <boost/utility.hpp>\r
 #include <boost/assert.hpp>\r
-#include <boost/intrusive/ilist_hook.hpp>\r
-#include <boost/intrusive/list_algorithms.hpp>\r
-#include <boost/intrusive/detail/pointer_type.hpp>\r
-#include <boost/intrusive/detail/pointer_to_other.hpp>\r
-#include <boost/intrusive/linking_policy.hpp>\r
+#include "ilist_hook.hpp"\r
+#include "list_algorithms.hpp"\r
+#include "detail/pointer_type.hpp"\r
+#include "detail/pointer_to_other.hpp"\r
+#include "linking_policy.hpp"\r
 #include <boost/get_pointer.hpp>\r
 #include <boost/static_assert.hpp>\r
 #include <iterator>\r
@@ -450,7 +450,7 @@ class ilist
    //! <b>Throws</b>: Nothing.\r
    //! \r
    //! <b>Complexity</b>: Constant.\r
-   reverse_iterator rend()     \r
+   reverse_iterator rend()\r
    { return reverse_iterator(begin()); }\r
 \r
    //! <b>Effects</b>: Returns a const_reverse_iterator pointing to the end\r
@@ -459,7 +459,7 @@ class ilist
    //! <b>Throws</b>: Nothing.\r
    //! \r
    //! <b>Complexity</b>: Constant.\r
-   const_reverse_iterator rend() const \r
+   const_reverse_iterator rend() const\r
    { return const_reverse_iterator(begin()); }\r
 \r
    //! <b>Effects</b>: Returns the number of the elements contained in the list.\r
@@ -1091,22 +1091,22 @@ class ilist
    template<class BinaryPredicate, class Destroyer>\r
    void unique_and_destroy(BinaryPredicate pred, Destroyer destroyer)\r
    {\r
-               if(!this->empty()){\r
-                       iterator first = begin();\r
-                       iterator after = first;\r
-         ++after;\r
-                       while(after != this->end()){\r
-            if(pred(*first, *after)){\r
-               pointer p = after.operator->();\r
-               after = erase(after);\r
-               destroyer(p);\r
+       if(!this->empty()) {\r
+            iterator first = begin();\r
+            iterator after = first;\r
+            ++after;\r
+            while(after != this->end()) {\r
+                if(pred(*first, *after)) {\r
+                    pointer p = after.operator->();\r
+                    after = erase(after);\r
+                    destroyer(p);\r
+                }\r
+                else {\r
+                    first = after++;\r
+                }\r
             }\r
-                               else{\r
-                                       first = after++;\r
-            }\r
-         }\r
-      }\r
-   }\r
+        }\r
+    }\r
 \r
    //! <b>Requires</b>: value must be a reference to a value inserted in a list.\r
    //! \r
@@ -1195,6 +1195,6 @@ inline void swap(ilist<V, C, S>& x, ilist<V, C, S>& y)
 } //namespace intrusive \r
 } //namespace boost \r
 \r
-#include <boost/intrusive/detail/config_end.hpp>\r
+#include "detail/config_end.hpp"\r
 \r
 #endif //BOOST_INTRUSIVE_ILIST_HPP\r