mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-15 23:09:05 +00:00
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: 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