Hi,
I am wondering whether you have put any thought or what you think about providing a range interface via fake-iterators/begin/end?
So that we could use the channel as one can use it in a Go loop:
for(auto&& elem: channel) {
// do stuff
}
I quickly wrote something together using boost::iterator_facade and while it seems to work it's pretty hacky.
Cheers,
Stephan
Hi,
I am wondering whether you have put any thought or what you think about providing a range interface via fake-iterators/
begin/end?So that we could use the channel as one can use it in a Go loop:
I quickly wrote something together using
boost::iterator_facadeand while it seems to work it's pretty hacky.Cheers,
Stephan