AK: Mark AK::IntrusiveList Non copyable and movable

This commit is contained in:
Brian Gianforcaro 2021-07-17 02:24:02 -07:00 committed by Andreas Kling
parent deda32628a
commit 9a6e065b36
Notes: sideshowbarker 2024-07-18 08:53:32 +09:00

View file

@ -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();