摘要: 1 第十一章 模板实参演绎 1.1 演绎的过程 每个实参-参数对的分析都是独立的;因此,如果最后得出的结果是矛盾的,那么演绎的过程将失败。 我们来看个例子: template typename T::ElementT at(T const& a, int i) { return a[i]; } void g1(int* p) { int x = a... 阅读全文
posted @ 2008-11-27 23:06 拿走不谢 阅读(622) 评论(0) 推荐(0) 编辑