Skip to content

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
@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.

2 participants