6 ms·
In the spirit of the article, boost range also has a reverse filter, so the following would return a reversed range similar to python's generator expression us
by alpatters 14y ago
In the spirit of the article, boost range also has a reverse filter, so the following would return a reversed range similar to python's generator expression
using namespace boost::adaptors;
s | reversed
or
reverse(s)