AK: Make RedBlackTree non-copyable and non-movable

This commit is contained in:
Andreas Kling 2021-07-15 01:25:13 +02:00
parent b0d9b88c49
commit 4ff35c23d3

View file

@ -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; }