mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:47:46 +00:00
AK: Make RedBlackTree non-copyable and non-movable
This commit is contained in:
parent
b0d9b88c49
commit
4ff35c23d3
1 changed files with 3 additions and 0 deletions
|
@ -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; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue