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

Independent seq_fwd and variant_policy #26

Merged
merged 1 commit into from
Dec 18, 2023
Merged

Independent seq_fwd and variant_policy #26

merged 1 commit into from
Dec 18, 2023

Conversation

alugowski
Copy link
Owner

Both headers are stand-alone and independent of the rest of poolSTL.

poolstl/seq_fwd.hpp

seq_fwd is a sequential policy (selectable, defaults to poolstl::seq_fwd) that simply forwards to the standard sequential (non-policy) function. Useful to write code in the parallel style even if tooling does not support it.

poolstl/variant_policy.hpp

Implements poolstl::variant_policy which supports an std::variant of policies. This used to be how poolstl::par_if was implemented (if parallel then the variant would be par, else seq. See supplement_test for an example of using this to implement a std_par_if.

@alugowski alugowski merged commit 48a9370 into main Dec 18, 2023
20 checks passed
@alugowski alugowski deleted the seq_fwd branch December 18, 2023 04:33
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

Successfully merging this pull request may close these issues.

1 participant