Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing IndexedViewContainer as a LazyContainer<SOMECLASS> #15

Open
Ivan-SB opened this issue Oct 29, 2022 · 0 comments
Open

Accessing IndexedViewContainer as a LazyContainer<SOMECLASS> #15

Ivan-SB opened this issue Oct 29, 2022 · 0 comments

Comments

@Ivan-SB
Copy link

Ivan-SB commented Oct 29, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant