1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:17:34 +00:00

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

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