|
Boost : |
From: Frederick Gotham (cauldwell.thomas_at_[hidden])
Date: 2020-03-29 16:21:31
Earlier today I wrote the following two lines of code:
auto const my_range = v | boost::adaptors::sliced(1,15) |
boost::adaptors::strided(2);
boost::range::transform( my_range, my_range.begin(), std::bit_not<uint8_t>() );
However it would have been nice as a one-liner:
boost::range::transform( v | boost::adaptors::sliced(1,15) |
boost::adaptors::strided(2), std::bit_not<uint8_t>() );
Why isn't there a form of "range::transform" that can transform in
place (and therefore takes exactly two arguments)?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk