class套class# Programming - 葵花宝典
m*t
1 楼
里面的class ctor initialize外面的class, 这是不是个pattern啊? 这样的话什么时
候可以用里面的那个class来declare啊?
class OutSideClass {
public:
...
private:
struct InSideClass {
InSideClass(OutSideClass *outObj):outSider(outObj){}
OutSideClass *outSider;
}
}
候可以用里面的那个class来declare啊?
class OutSideClass {
public:
...
private:
struct InSideClass {
InSideClass(OutSideClass *outObj):outSider(outObj){}
OutSideClass *outSider;
}
}