2022年10月18日
摘要: template<class T> class any { public: T m_data; }; void main() { any<int> a; } 缺点是 必须知道类型,有时我们并不知道某个对象的类型。 class any { public: template<class T> any(c 阅读全文
posted @ 2022-10-18 09:15 闻缺陷则喜何志丹 阅读(10) 评论(0) 推荐(0) 编辑