From 855d538ea335ba44927730bacfbfee3f9e8f844f Mon Sep 17 00:00:00 2001 From: Christian Mazakas Date: Wed, 28 Sep 2022 13:48:21 -0700 Subject: [PATCH] Fix typo in foa table's empty() implementation --- include/boost/unordered/detail/foa.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/unordered/detail/foa.hpp b/include/boost/unordered/detail/foa.hpp index 822b49ac..3f210014 100644 --- a/include/boost/unordered/detail/foa.hpp +++ b/include/boost/unordered/detail/foa.hpp @@ -682,7 +682,7 @@ public: const_iterator cbegin()const noexcept{return begin();} const_iterator cend()const noexcept{return end();} - bool empty()const noexcept{return size()!=0;} + bool empty()const noexcept{return size()==0;} std::size_t size()const noexcept{return size_;} std::size_t max_size()const noexcept{return SIZE_MAX;}