ladybird/AK/Noncopyable.h

18 lines
394 B
C
Raw Normal View History

/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#define AK_MAKE_NONCOPYABLE(c) \
private: \
2022-04-01 17:58:27 +00:00
c(c const&) = delete; \
c& operator=(c const&) = delete
2019-09-21 22:17:29 +00:00
#define AK_MAKE_NONMOVABLE(c) \
private: \
c(c&&) = delete; \
c& operator=(c&&) = delete