diff options
author | Andreas Kling <kling@serenityos.org> | 2021-07-15 01:25:13 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-15 01:48:09 +0200 |
commit | 4ff35c23d3ffbbfaa502ab69d071f9b875be4d31 (patch) | |
tree | 33752089c07a422cd0a8ce1097057cf8d819c97d /AK/RedBlackTree.h | |
parent | b0d9b88c490298f85e7588a84b5ec4c8942fab65 (diff) | |
download | serenity-4ff35c23d3ffbbfaa502ab69d071f9b875be4d31.zip |
AK: Make RedBlackTree non-copyable and non-movable
Diffstat (limited to 'AK/RedBlackTree.h')
-rw-r--r-- | AK/RedBlackTree.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/AK/RedBlackTree.h b/AK/RedBlackTree.h index 4728608f52..99a7527e00 100644 --- a/AK/RedBlackTree.h +++ b/AK/RedBlackTree.h @@ -12,6 +12,9 @@ namespace AK { template<Integral K> class BaseRedBlackTree { + AK_MAKE_NONCOPYABLE(BaseRedBlackTree); + AK_MAKE_NONMOVABLE(BaseRedBlackTree); + public: [[nodiscard]] size_t size() const { return m_size; } [[nodiscard]] bool is_empty() const { return m_size == 0; } |