| 1 |
struct ImmortalRefType {}; |
| 2 |
|
| 3 |
struct RefCountedType { int value; }; |
| 4 |
|
| 5 |
inline void RCRetain(RefCountedType *x) { x->value++; } |
| 6 |
inline void RCRelease(RefCountedType *x) { x->value--; } |
| 7 |
|
| 8 |
struct NonCopyableType { int value; }; |
| 9 |
struct CopyableType { int value; }; |