diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-03-14 18:53:37 +0100 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-03-14 18:53:37 +0100 |
commit | 4630cb5237aea7749ac9938c738146c798e305cb (patch) | |
tree | 38ba9e41c3bf8408df97b7548ef112e2af61cd13 /asl/containers/hash_set.hpp | |
parent | dce2c187ec96aedcfa703ffec9c4c91f0a49ca69 (diff) |
Add missing is_empty methods
Diffstat (limited to 'asl/containers/hash_set.hpp')
-rw-r--r-- | asl/containers/hash_set.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
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<typename... Args> void insert(Args&&... args) requires constructible_from<T, Args&&...> |