3 ms·
If you use C++23's ranges and Boost Lambda and sacrifice your better judgement, you can get it down to: fold_left(x, 0, _1 + _2)
by GrantMoyer 2y ago
If you use C++23's ranges and Boost Lambda and sacrifice your better judgement, you can get it down to:
fold_left(x, 0, _1 + _2)