From ad50d3fc8f26a7303ef68467b2868b7a4047e789 Mon Sep 17 00:00:00 2001 From: caiyuzheng <290198252@qq.com> Date: Wed, 20 May 2020 17:54:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=A1=A5=E6=8E=A5=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- general/src/pattern/adapter.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/general/src/pattern/adapter.hpp b/general/src/pattern/adapter.hpp index 6b07dd3..982f044 100644 --- a/general/src/pattern/adapter.hpp +++ b/general/src/pattern/adapter.hpp @@ -13,4 +13,16 @@ class Adaptee{ }; +template +class Bridgeable{ +public: + Bridgeable(T *dat){ + mBridgeData = dat; + } + +private: + T *mBridgeData; + +}; + #endif //GENERAL_ADAPTER_H