Boost logo

Boost :

From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2020-09-30 09:25:53


On 9/30/20 12:37 AM, Fletcher, John P via Boost wrote:
> Peter
>
> It would be nice if it also supported
>
> for_each(a.begin(), a.end(), std::cout << _1 << ' ');

For just outputting ranges I would suggest using range_manip:

std::cout << boost::log::range_manip(a, ' ');

https://www.boost.org/doc/libs/1_74_0/libs/log/doc/html/log/detailed/utilities.html#log.detailed.utilities.manipulators.range

But, as I mentioned before, having operators << and >> would be useful
in other contexts.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk