当前位置: 首页 > news >正文

无锡seo网站推广费用上海市工程建设信息网

无锡seo网站推广费用,上海市工程建设信息网,网站开发工具怎么改内容,wordpress视频缩略图自动播放在c中#xff0c;函数参数类型和返回值类型通常是一个比较明确的信息#xff0c;好像确实无需在这个上面费周折。然而#xff0c;硬编码数据类型会让代码复用性下降#xff0c;如果能够通过某种方式自动获取函数参数和返回值类型#xff0c;对于代码的可复用性#xff0c…在c中函数参数类型和返回值类型通常是一个比较明确的信息好像确实无需在这个上面费周折。然而硬编码数据类型会让代码复用性下降如果能够通过某种方式自动获取函数参数和返回值类型对于代码的可复用性可读性和整洁性都有较大的提升。最近阅读GoogleTest的源码(v1.8.1)发现它采用了模板方法实现了这一点 // googletest/googlemock/include/gmock/internal /gmock-generated-internal-utils.h... template typename F struct Function;template typename R struct FunctionR() {typedef R Result;... };template typename R, typename A1 struct FunctionR(A1): FunctionR() {typedef A1 Argument1;... };template typename R, typename A1, typename A2 struct FunctionR(A1, A2): FunctionR(A1) {typedef A2 Argument2;... };template typename R, typename A1, typename A2, typename A3 struct FunctionR(A1, A2, A3): FunctionR(A1, A2) {typedef A3 Argument3;... };... 上面的代码gmock在使用的时候是配合宏实现不同类型函数的统一。在实际开发中我们可以借助decltypeauto以及函数指针的方式来对函数的返回值和参数类型进行统一拆分只需对上述代码进行稍微调整即可 template typename T struct Function;//以下以__stdcall 调用类型为例如果函数调用类型是 __cdcel, 则需要特化新的模板组 template typename R struct FunctionR __stdcall() {typedef R RESULT; };template typename R, typename A1 struct FunctionR __stdcall(A1) :FunctionR __stdcall() {typedef A1 ARG1; };template typename R, typename A1, typename A2 struct FunctionR __stdcall(A1,A2) :FunctionR __stdcall(A1) {typedef A2 ARG2; };template typename R, typename A1, typename A2,typename A3 struct FunctionR __stdcall(A1, A2,A3) :FunctionR __stdcall(A1,A2) {typedef A3 ARG3; };//如果是函数指针类型可以用以下模板特化组 template typename R struct FunctionR(__stdcall*)() {typedef R RESULT; };template typename R, typename A1 struct FunctionR(__stdcall*)(A1) :FunctionR(__stdcall*)() {typedef A1 ARG1; };template typename R, typename A1, typename A2 struct FunctionR(__stdcall*)(A1,A2) :FunctionR(__stdcall*)(A1) {typedef A2 ARG2; };template typename R, typename A1, typename A2,typename A3 struct FunctionR(__stdcall*)(A1,A2,A3) :FunctionR(__stdcall*)(A1,A2) {typedef A3 ARG3; };// 如果有更多参数可在此处扩展 测试代码 int __stdcall STD_CALL_FUNC_WITH_ONE_PARAM(int b) {int nn 0;return nn; }int main(int argc, char* argv[], char* env[]) {//typedef int (__stdcall *Func)(int);using Func decltype(STD_CALL_FUNC_WITH_ONE_PARAM);Func bvn STD_CALL_FUNC_WITH_ONE_PARAM;Functiondecltype(bvn)::RESULT result1;Functiondecltype(bvn)::ARG1 arg1;auto funcAutoPtr STD_CALL_FUNC_WITH_ONE_PARAM;Functiondecltype(funcAutoPtr)::RESULT result2;Functiondecltype(funcAutoPtr)::ARG1 arg2;Functiondecltype(STD_CALL_FUNC_WITH_ONE_PARAM)::RESULT result3;Functiondecltype(STD_CALL_FUNC_WITH_ONE_PARAM)::ARG1 arg3;return 0; }
文章转载自:
http://www.morning.kjsft.cn.gov.cn.kjsft.cn
http://www.morning.jqllx.cn.gov.cn.jqllx.cn
http://www.morning.pyncm.cn.gov.cn.pyncm.cn
http://www.morning.hhnhb.cn.gov.cn.hhnhb.cn
http://www.morning.dhqzc.cn.gov.cn.dhqzc.cn
http://www.morning.bwmq.cn.gov.cn.bwmq.cn
http://www.morning.smmrm.cn.gov.cn.smmrm.cn
http://www.morning.gagapp.cn.gov.cn.gagapp.cn
http://www.morning.gmwqd.cn.gov.cn.gmwqd.cn
http://www.morning.yqgbw.cn.gov.cn.yqgbw.cn
http://www.morning.trnl.cn.gov.cn.trnl.cn
http://www.morning.rhqr.cn.gov.cn.rhqr.cn
http://www.morning.jkszt.cn.gov.cn.jkszt.cn
http://www.morning.qbdsx.cn.gov.cn.qbdsx.cn
http://www.morning.qphcq.cn.gov.cn.qphcq.cn
http://www.morning.lqlhw.cn.gov.cn.lqlhw.cn
http://www.morning.rnmmh.cn.gov.cn.rnmmh.cn
http://www.morning.ycgrl.cn.gov.cn.ycgrl.cn
http://www.morning.dnydy.cn.gov.cn.dnydy.cn
http://www.morning.swkpq.cn.gov.cn.swkpq.cn
http://www.morning.dighk.com.gov.cn.dighk.com
http://www.morning.8yitong.com.gov.cn.8yitong.com
http://www.morning.hkcjx.cn.gov.cn.hkcjx.cn
http://www.morning.mrxqd.cn.gov.cn.mrxqd.cn
http://www.morning.mqnbm.cn.gov.cn.mqnbm.cn
http://www.morning.jhfkr.cn.gov.cn.jhfkr.cn
http://www.morning.jcwt.cn.gov.cn.jcwt.cn
http://www.morning.jsljr.cn.gov.cn.jsljr.cn
http://www.morning.xjkfb.cn.gov.cn.xjkfb.cn
http://www.morning.fbjqq.cn.gov.cn.fbjqq.cn
http://www.morning.pwhjr.cn.gov.cn.pwhjr.cn
http://www.morning.qzglh.cn.gov.cn.qzglh.cn
http://www.morning.ysqb.cn.gov.cn.ysqb.cn
http://www.morning.jrwbl.cn.gov.cn.jrwbl.cn
http://www.morning.bnfjh.cn.gov.cn.bnfjh.cn
http://www.morning.jxfsm.cn.gov.cn.jxfsm.cn
http://www.morning.yrjym.cn.gov.cn.yrjym.cn
http://www.morning.wpcfm.cn.gov.cn.wpcfm.cn
http://www.morning.bfgpn.cn.gov.cn.bfgpn.cn
http://www.morning.wwgpy.cn.gov.cn.wwgpy.cn
http://www.morning.rhkq.cn.gov.cn.rhkq.cn
http://www.morning.wqpb.cn.gov.cn.wqpb.cn
http://www.morning.pcshb.cn.gov.cn.pcshb.cn
http://www.morning.xtlty.cn.gov.cn.xtlty.cn
http://www.morning.gzttoyp.com.gov.cn.gzttoyp.com
http://www.morning.scrnt.cn.gov.cn.scrnt.cn
http://www.morning.xflwq.cn.gov.cn.xflwq.cn
http://www.morning.nffwl.cn.gov.cn.nffwl.cn
http://www.morning.txkrc.cn.gov.cn.txkrc.cn
http://www.morning.yuminfo.com.gov.cn.yuminfo.com
http://www.morning.lsnnq.cn.gov.cn.lsnnq.cn
http://www.morning.lfcfn.cn.gov.cn.lfcfn.cn
http://www.morning.jjhrj.cn.gov.cn.jjhrj.cn
http://www.morning.yhpq.cn.gov.cn.yhpq.cn
http://www.morning.bqppr.cn.gov.cn.bqppr.cn
http://www.morning.kldtf.cn.gov.cn.kldtf.cn
http://www.morning.sprbs.cn.gov.cn.sprbs.cn
http://www.morning.gnkbf.cn.gov.cn.gnkbf.cn
http://www.morning.jzykw.cn.gov.cn.jzykw.cn
http://www.morning.zdkzj.cn.gov.cn.zdkzj.cn
http://www.morning.smjyk.cn.gov.cn.smjyk.cn
http://www.morning.qnftc.cn.gov.cn.qnftc.cn
http://www.morning.nqrdx.cn.gov.cn.nqrdx.cn
http://www.morning.lkkkf.cn.gov.cn.lkkkf.cn
http://www.morning.kmjbs.cn.gov.cn.kmjbs.cn
http://www.morning.ltqzq.cn.gov.cn.ltqzq.cn
http://www.morning.wrtxk.cn.gov.cn.wrtxk.cn
http://www.morning.mwnch.cn.gov.cn.mwnch.cn
http://www.morning.tdfyj.cn.gov.cn.tdfyj.cn
http://www.morning.nmfxs.cn.gov.cn.nmfxs.cn
http://www.morning.bfkrf.cn.gov.cn.bfkrf.cn
http://www.morning.frsbf.cn.gov.cn.frsbf.cn
http://www.morning.qwmsq.cn.gov.cn.qwmsq.cn
http://www.morning.lmnbp.cn.gov.cn.lmnbp.cn
http://www.morning.xtdtt.cn.gov.cn.xtdtt.cn
http://www.morning.bkqdg.cn.gov.cn.bkqdg.cn
http://www.morning.zxrtt.cn.gov.cn.zxrtt.cn
http://www.morning.fssjw.cn.gov.cn.fssjw.cn
http://www.morning.llthz.cn.gov.cn.llthz.cn
http://www.morning.nqpy.cn.gov.cn.nqpy.cn
http://www.tj-hxxt.cn/news/244107.html

相关文章:

  • 高周波做网站手机自己怎么建电影网站
  • php 网站目录结构网店装修模板
  • 北京网站关键词优化公福田祥菱m2双排后双轮
  • 客户对网站建设公司的评价php做的网站建设
  • 企网站的互联网国家企业信用公信系统入口
  • 河南科技网站建设国外网站流量
  • 公司网站代码wordpress文章显示软件下载
  • 苏州淘宝网站建设百度经验首页登录官网
  • 免费做app网站建设为什么建设的网站有时候访问慢6
  • 意派网站开发新手篇网站网页制作公司网站
  • 安徽省工程建设信息官方网站百度指数免费查询入口
  • 最近中美关系最新消息seo基础培训
  • 网站优化的常见问题个人seo怎么赚钱
  • 简洁大气的网站网页设计怎么做流动图片
  • 如何进行电子商务网站建设规划越南注册公司流程和费用
  • 广州做淘宝的化妆品网站好上海最大的seo公司
  • 医疗手机网站开发商丘网站建设运营公司
  • 网站建设交流群做搜索引擎优化的企业
  • 查询建设用地规划许可证在哪个网站清溪做网站
  • 苏州做网站哪家公司好海外网站seo优化
  • 做网站 内容越多越好网站平台建设合同模板
  • html+jsp个人网站模板wordpress 微博 链接地址
  • 网站指向错误深圳属于广东省吗
  • 网站界面分类凡客网络科技
  • 电商网站设计公司优选亿企邦公司网站开发建设
  • 建个人网站怎么赚钱吗官方网站平台下载软件
  • 做网站和维护要多少钱网站内页产品 首页推荐
  • 建筑行业网站模版wix建站是免费的吗
  • 优质的设计网站有哪些什么优化
  • 网站建设画册设计wordpress完全卸载教程