summaryrefslogtreecommitdiffstats
path: root/include/raul/Maid.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/raul/Maid.hpp')
-rw-r--r--include/raul/Maid.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/raul/Maid.hpp b/include/raul/Maid.hpp
index db957d3..51e2dca 100644
--- a/include/raul/Maid.hpp
+++ b/include/raul/Maid.hpp
@@ -103,7 +103,10 @@ public:
~Maid() { cleanup(); }
/// Return false iff there is currently no garbage
- bool empty() const { return !_disposed.load(std::memory_order_relaxed); }
+ [[nodiscard]] bool empty() const
+ {
+ return !_disposed.load(std::memory_order_relaxed);
+ }
/**
Enqueue an object for deletion when cleanup() is called next.