AK: Make RedBlackTree non-copyable and non-movable
This commit is contained in:
parent
b0d9b88c49
commit
4ff35c23d3
Notes:
sideshowbarker
2024-07-18 08:59:46 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/4ff35c23d3f
1 changed files with 3 additions and 0 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Reference in a new issue