降低圈复杂度

用functional的方式降低圈复杂度

用stl algorithm代替for loop


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;})