ladybird/AK/Noncopyable.h

12 lines
276 B
C
Raw Normal View History

#pragma once
#define AK_MAKE_NONCOPYABLE(c) \
private: \
c(const c&) = delete; \
c& operator=(const c&) = delete;
2019-09-21 22:17:29 +00:00
#define AK_MAKE_NONMOVABLE(c) \
private: \
c(c&&) = delete; \
c& operator=(c&&) = delete;