摘要: templateT parallelAccumulate(Iterator first, Iterator last, T init){ size_t const length = std::distance(first, last); if (length == 0){ ... 阅读全文
posted @ 2015-10-24 18:44 wu_overflow 阅读(210) 评论(0) 推荐(0) 编辑
摘要: templatestruct AccumulateBlock{ T operator()(Iterator first, Iterator last) { return std::accumulate(first, last, T()); }};class Threa... 阅读全文
posted @ 2015-10-24 17:57 wu_overflow 阅读(151) 评论(0) 推荐(0) 编辑