【C/C++】模板類

記錄一個之前沒見過的模板使用方法。ios #include <iostream> template <class T> class Derived : public T { public: Derived() { std::cout << "Derived()" << std::endl; } ~Derived() { std::cout << "~Derived()" << std:
相關文章
相關標籤/搜索