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

[C++20] Apply concepts in parallel.h. #14933

Merged
merged 3 commits into from Mar 22, 2023
Merged

Conversation

bangerth
Copy link
Member

Next step for #14840.

parallel.h has many places where we take an invokable object and apply it to certain arguments. This patch adds the relevant concepts to ensure that the types match their constraints.

Comment on lines -110 to +114
* predicate(*in++)</code> where the <code>in</code> iterator ranges over
* function(*in++)</code> where the <code>in</code> iterator ranges over
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a number of places in this file that used the word "predicate" instead of "function object". This was uniformly wrong in this file: a "predicate" is a function that returns a bool, but the ones in this file do generally not. I fixed this while here, both in the documentation, in variable names, and in template type names.

@drwells drwells merged commit 311b57d into dealii:master Mar 22, 2023
11 checks passed
@bangerth bangerth deleted the cxx20-concepts-1 branch March 22, 2023 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants