diff --git a/src/utils.hh b/src/utils.hh index ea217b97..4ff1839b 100644 --- a/src/utils.hh +++ b/src/utils.hh @@ -180,7 +180,7 @@ auto find_if(Container&& container, T op) -> decltype(container.begin()) template bool contains(Container&& container, const T& value) { - return (not container.empty()) and find(container, value) != container.end(); + return find(container, value) != container.end(); } template