Skip to content

Accessing IndexedViewContainer as a LazyContainer<SOMECLASS> #15

@Ivan-SB

Description

@Ivan-SB

What would be the best way to write something like

for (auto&& x : discreture::combinations(_N, 3)) {
myclass = converter(x);
}

or even better

for (auto&& x : mywrapper(_N, 3)) {
myclass = x;
}

where mywrapper could be something like:

class mywrapper {
private:
decltype(..... discreture::lex_combinations...) lc;
public:
size_type size() const { return lc.size();

but I just find hard to write the signature of

converter(x);

thanks

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