2015年8月17日

【effective c++读书笔记】【第7章】模板和泛型编程(3)

摘要: 条款46:需要类型转换时请为模板定义非成员函数对条款24的例子进行模板化:#includeusing namespace std;templateclass Rational{public: Rational(const T& n = 0, const T& d = 1) :numerator(n)... 阅读全文

posted @ 2015-08-17 13:24 ruan875417 阅读(139) 评论(0) 推荐(0) 编辑

导航