ladybird/AK/Noncopyable.h
2019-09-22 00:17:29 +02:00

11 lines
276 B
C

#pragma once
#define AK_MAKE_NONCOPYABLE(c) \
private: \
c(const c&) = delete; \
c& operator=(const c&) = delete;
#define AK_MAKE_NONMOVABLE(c) \
private: \
c(c&&) = delete; \
c& operator=(c&&) = delete;