mFrame
載入中...
搜尋中...
無符合項目
NonCopyable.h
1
7#ifndef MFRAME_F35FD866_7A69_4F3F_9D7B_8E60590317A1
8#define MFRAME_F35FD866_7A69_4F3F_9D7B_8E60590317A1
9
10/* ***************************************************************************************
11 * Include
12 */
13
14//----------------------------------------------------------------------------------------
15#include "./../lang/Interface.h"
16
17//----------------------------------------------------------------------------------------
18
19/* ***************************************************************************************
20 * Namespace
21 */
22namespace ufm::lang {
23 struct NonCopyable;
24} // namespace ufm::lang
25
26/* ***************************************************************************************
27 * Class/Interface/Struct/Enum
28 */
29
39 /* *************************************************************************************
40 * Method
41 */
42
43 /* *************************************************************************************
44 * Default Method
45 */
46
53 inline NonCopyable(void) = default;
54
63 inline NonCopyable(const NonCopyable& other) = delete;
64
74 inline NonCopyable& operator=(const NonCopyable& other) = delete;
75};
76
77/* ***************************************************************************************
78 * End of file
79 */
80
81#endif /* MFRAME_F35FD866_7A69_4F3F_9D7B_8E60590317A1 */
Definition Appendable.h:23
禁止複製的結構
Definition NonCopyable.h:38
NonCopyable(void)=default
建構一個新的 NonCopyable 物件
NonCopyable(const NonCopyable &other)=delete
禁止複製建構子
NonCopyable & operator=(const NonCopyable &other)=delete
禁止複製賦值運算子