1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:57:35 +00:00

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> template<Integral K>
class BaseRedBlackTree { class BaseRedBlackTree {
AK_MAKE_NONCOPYABLE(BaseRedBlackTree);
AK_MAKE_NONMOVABLE(BaseRedBlackTree);
public: public:
[[nodiscard]] size_t size() const { return m_size; } [[nodiscard]] size_t size() const { return m_size; }
[[nodiscard]] bool is_empty() const { return m_size == 0; } [[nodiscard]] bool is_empty() const { return m_size == 0; }