operator2.c
来自「xml大全 可读写调用率很高 xml大全 可读写调用率很高」· C语言 代码 · 共 23 行
C
23 行
typedef int INT_TYPEDEF;template<class T>class TypedIfc{public: virtual ~TypedIfc() { } virtual operator const T&() const = 0; virtual const T& operator= (const T& t) = 0;};template<class Tnative>class NullIfc : public TypedIfc<Tnative>{public: const Tnative& operator= (const Tnative& t) { return t; } operator const Tnative&() const { return *(Tnative *)0; }};typedef TypedIfc<INT_TYPEDEF> INT_TYPEDEFIfc;NullIfc<int> i32;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?