mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
AK: Mark AK::IntrusiveList Non copyable and movable
This commit is contained in:
parent
deda32628a
commit
9a6e065b36
Notes:
sideshowbarker
2024-07-18 08:53:32 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/9a6e065b36e Pull-request: https://github.com/SerenityOS/serenity/pull/8829 Reviewed-by: https://github.com/IdanHo ✅
1 changed files with 4 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
|||
#include <AK/Assertions.h>
|
||||
#include <AK/BitCast.h>
|
||||
#include <AK/Forward.h>
|
||||
#include <AK/Noncopyable.h>
|
||||
#include <AK/StdLibExtras.h>
|
||||
|
||||
namespace AK {
|
||||
|
@ -45,6 +46,9 @@ private:
|
|||
|
||||
template<class T, typename Container, IntrusiveListNode<T, Container> T::*member>
|
||||
class IntrusiveList {
|
||||
AK_MAKE_NONCOPYABLE(IntrusiveList);
|
||||
AK_MAKE_NONMOVABLE(IntrusiveList);
|
||||
|
||||
public:
|
||||
IntrusiveList() = default;
|
||||
~IntrusiveList();
|
||||
|
|
Loading…
Reference in a new issue