首页 > 其他 > 详细

降低圈复杂度

时间:2020-04-29 20:20:33      阅读:92      评论:0      收藏:0      [点我收藏+]

降低圈复杂度

用functional的方式降低圈复杂度

用stl algorithm代替for loop

https://blog.csdn.net/YyoulingL/article/details/84515924

outs.map(|x| x.m).collect()

boost::copy( outs | transformed([](auto x){return x->m;}),std::back_inserter(mouts))

std::transform(outs.begin(), outs.end(), std::back_inserter(mouts), [](auto x){return x->m;})

降低圈复杂度

https://zhuanlan.zhihu.com/p/29438120

降低圈复杂度

原文:https://www.cnblogs.com/cutepig/p/12804206.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!