Skip to content

Iterating results without to_vector() #8

@malamanteau

Description

@malamanteau

I was wondering, how can I iterate over query results without putting them into a vector first?

So for example, if I do this:

for (auto const & item : (cpplinq::from(ins) >> cpplinq::distinct() >> cpplinq::to_vector()))
{
	//stuff
}

I would rather iterate over each item in-place, without making a copy, is there a way to do this?

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