mFrame
載入中...
搜尋中...
無符合項目
AutoConvert.h
1
7#ifndef MFRAME_0DEB9649_0521_4C73_8E93_BEF012AC9F2D
8#define MFRAME_0DEB9649_0521_4C73_8E93_BEF012AC9F2D
9
10/* ***************************************************************************************
11 * Include
12 */
13
14//----------------------------------------------------------------------------------------
15
16//----------------------------------------------------------------------------------------
17#include "./../lang/Interface.h"
18
19/* ***************************************************************************************
20 * Namespace
21 */
22namespace mframe::lang {
23 template <template <typename...> class C>
24 struct AutoConvert;
25}
26
27/* ***************************************************************************************
28 * Class/Interface/Struct/Enum
29 */
30template <template <typename...> class C>
38 template <typename... Args>
39 inline operator const C<Args...>&(void) const {
40 return *reinterpret_cast<const C<Args...>*>(this);
41 }
42
48 template <typename... Args>
49 inline operator C<Args...>&(void) {
50 return *reinterpret_cast<C<Args...>*>(this);
51 }
52};
53
54/* ***************************************************************************************
55 * End of file
56 */
57
58#endif /* MFRAME_0DEB9649_0521_4C73_8E93_BEF012AC9F2D */
Definition Appendable.h:23
Definition AutoConvert.h:31