4 ms·
How would you feel about copy_if( begin(v), end(v), back_inserter(result), is_even ); Having reusable named functions increases the readability over the r
by Negitivefrags 13y ago
How would you feel about
copy_if( begin(v), end(v), back_inserter(result), is_even );
Having reusable named functions increases the readability over the roll your own for loop version when you turn your iterations into named primitives. It can be easy to get lazy about doing that where appropriate.