From c977acd66a2aba1df4c1f01da31060bb42fac79a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sun, 31 Dec 2023 20:27:02 +0100 Subject: [PATCH] Use value_equal instead of std::equal_to like other containers (e.g. slist) --- include/boost/intrusive/list.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/intrusive/list.hpp b/include/boost/intrusive/list.hpp index 218c5fb..18c1a5c 100644 --- a/include/boost/intrusive/list.hpp +++ b/include/boost/intrusive/list.hpp @@ -1187,14 +1187,14 @@ class list_impl //! Effects: Removes adjacent duplicate elements or adjacent //! elements that are equal from the list. No destructors are called. //! - //! Throws: If std::equal_toThrows: If the comparison operator throws. Basic guarantee. //! //! Complexity: Linear time (size()-1 comparisons calls to pred()). //! //! Note: The relative order of elements that are not removed is unchanged, //! and iterators to elements that are not removed remain valid. void unique() - { this->unique_and_dispose(std::equal_to(), detail::null_disposer()); } + { this->unique_and_dispose(value_equal(), detail::null_disposer()); } //! Effects: Removes adjacent duplicate elements or adjacent //! elements that satisfy some binary predicate from the list. @@ -1216,7 +1216,7 @@ class list_impl //! elements that are equal from the list. //! Disposer::operator()(pointer) is called for every removed element. //! - //! Throws: If std::equal_toThrows: If the equality operator throws. Basic guarantee. //! //! Complexity: Linear time (size()-1) comparisons equality comparisons. //! @@ -1224,7 +1224,7 @@ class list_impl //! and iterators to elements that are not removed remain valid. template void unique_and_dispose(Disposer disposer) - { this->unique_and_dispose(std::equal_to(), disposer); } + { this->unique_and_dispose(value_equal(), disposer); } //! Requires: Disposer::operator()(pointer) shouldn't throw. //!