2017年12月22日

运行期以索引获取tuple元素-C++11之1

摘要: //运行期以索引获取tuple元素-C++11之1 //需支持C++11及以上标准的编译器,VS2017 15.5.x、CodeBlocks 16.01 gcc 7.2 //参见《深入应用C++11:代码优化与工程级应用》p147,祁宇,机械工业出版社,2015年05 #include #include using namespace std; template typename ena... 阅读全文

posted @ 2017-12-22 17:39 patton88 阅读(239) 评论(0) 推荐(0) 编辑

运行期以索引获取tuple元素-C++11之2

摘要: //运行期以索引获取tuple元素-C++11之2 //需支持C++11及以上标准的编译器,VS2017 15.5.x、CodeBlocks 16.01 gcc 7.2 //参见《深入应用C++11:代码优化与工程级应用》p148,祁宇,机械工业出版社,2015年05 #include #include using namespace std; template void GetArgBy... 阅读全文

posted @ 2017-12-22 17:38 patton88 阅读(198) 评论(0) 推荐(0) 编辑

导航