Skip to content

Range Interface #5

Description

@StephanDollberg

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions