From cbade33906dc0d090d5dba6231fb48e359afff95 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Wed, 12 Mar 2025 00:37:23 +0100 Subject: Some more shit --- asl/containers/hash_set.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'asl/containers/hash_set.hpp') 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 void insert(Args&&... args) -- cgit