We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As many programmers I sometimes need to do some work for all flags set in an flag_set.
Can we add an type_safe way to iterate over all 'set' flags in an flag_set? e.g.
enum class my_enum; // some flag_set compatible enum class void do_something_with(my_enum e); { type_safe::flag_set<my_enum> some_flag_set(); type_safe::for_each( some_flag_set, [](f){ do_something_with(f); } ); }
The text was updated successfully, but these errors were encountered:
If you be willing to write something, I'm happy for a PR.
Sorry, something went wrong.
In case someone works on this, I think range syntax would also be nice:
for (auto f : some_flag_set) { do_something_with(f); }
Successfully merging a pull request may close this issue.
As many programmers I sometimes need to do some work for all flags set in an flag_set.
Can we add an type_safe way to iterate over all 'set' flags in an flag_set?
e.g.
The text was updated successfully, but these errors were encountered: