添加桥接模式

master
caiyuzheng 2020-05-20 17:54:39 +08:00
parent 0cdd412b6e
commit ad50d3fc8f
1 changed files with 12 additions and 0 deletions

View File

@ -13,4 +13,16 @@ class Adaptee{
}; };
template<typename T>
class Bridgeable{
public:
Bridgeable(T *dat){
mBridgeData = dat;
}
private:
T *mBridgeData;
};
#endif //GENERAL_ADAPTER_H #endif //GENERAL_ADAPTER_H