From 4630cb5237aea7749ac9938c738146c798e305cb Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Fri, 14 Mar 2025 18:53:37 +0100 Subject: Add missing is_empty methods --- asl/containers/hash_set.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'asl/containers/hash_set.hpp') diff --git a/asl/containers/hash_set.hpp b/asl/containers/hash_set.hpp index 5422d5e..6e6f851 100644 --- a/asl/containers/hash_set.hpp +++ b/asl/containers/hash_set.hpp @@ -386,6 +386,8 @@ public: [[nodiscard]] constexpr isize_t size() const { return m_size; } + [[nodiscard]] constexpr bool is_empty() const { return m_size == 0; } + template void insert(Args&&... args) requires constructible_from -- cgit