diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-03-12 00:37:23 +0100 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-03-12 22:32:38 +0100 |
commit | cbade33906dc0d090d5dba6231fb48e359afff95 (patch) | |
tree | 391399754e43332fa7bde336255dd17d83683228 /asl/containers/hash_set.hpp | |
parent | c8b73031d8a9f7770410c9d0e6da5b230e501e85 (diff) |
Some more shit
Diffstat (limited to 'asl/containers/hash_set.hpp')
-rw-r--r-- | asl/containers/hash_set.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/asl/containers/hash_set.hpp b/asl/containers/hash_set.hpp index 02a8036..5422d5e 100644 --- a/asl/containers/hash_set.hpp +++ b/asl/containers/hash_set.hpp @@ -72,7 +72,7 @@ protected: ASL_NO_UNIQUE_ADDRESS Allocator m_allocator; - constexpr isize_t max_size() const + [[nodiscard]] constexpr isize_t max_size() const { // Max load factor is 75% return (m_capacity >> 1) + (m_capacity >> 2); // NOLINT(*-signed-bitwise) @@ -384,7 +384,7 @@ public: } } - constexpr isize_t size() const { return m_size; } + [[nodiscard]] constexpr isize_t size() const { return m_size; } template<typename... Args> void insert(Args&&... args) |