饭后温柔

汉堡与老干妈同嚼 有可乐味
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2014年2月26日

摘要: function traits.获取函数或成员函数的返回类型,参数类型,参数长度,类类型。函数参数列表推断基于typelist:http://www.cnblogs.com/flytrace/p/3551414.html先看一个普通函数非const的特化: template struct function_traits { typedef R return_type; typedef typelist arglist; enum { arg_count = sizeof...(Args) }; template ... 阅读全文

posted @ 2014-02-26 03:15 饭后温柔 阅读(3580) 评论(3) 推荐(1) 编辑