会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
落英聽誰細數
博客园
首页
新随笔
联系
管理
订阅
2015年8月11日
[Effective Modern C++] Item 1. Understand template type deduction - 了解模板类型推断
摘要: 条款一 了解模板类型推断基本情况首先定义函数模板和函数调用的形式如下,在编译期间,编译器推断T和ParamType的类型,两者基本不相同,因为ParamType常常包含const、引用等修饰符templatevoid f(ParamType param); // 函数模板形式f(expr); // ...
阅读全文
posted @ 2015-08-11 22:36 Azurewing
阅读(431)
评论(0)
推荐(0)
编辑
公告