cpp-channel icon indicating copy to clipboard operation
cpp-channel copied to clipboard

Use channel as an input_iterator

Open schaumb opened this issue 10 months ago • 1 comments

Currently, the channel iterators can be used only as output iterators.

Integrates well with STL algorithms.

If I want to pipe two channels, there is no support for the STL algorithms:

msd::channel<int> one;
msd::channel<int> two;
std::copy(one.begin(), one.end(), two.end());

schaumb avatar Oct 19 '23 10:10 schaumb