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
<algorithm>
ranges::is_permutation
STL/stl/inc/algorithm
Lines 1010 to 1013 in ef62d3f
Lines 1099 to 1102 in ef62d3f
The lambda needs to specify return type eg -> bool since boolean-testable only requires that the return type of Pred can be converted to bool.
-> bool
boolean-testable
Pred
bool
#include <algorithm> struct Bool { operator bool() { return true; }; Bool() = default; Bool(const Bool&) = delete; }; int main() { Bool b; int x[] = {42}; std::ranges::is_permutation(x, x, [&](auto, auto) -> Bool& { return b; }); }
https://godbolt.org/z/dPKKeex9o
The text was updated successfully, but these errors were encountered:
<ranges>
chunk_by_view
Successfully merging a pull request may close this issue.
STL/stl/inc/algorithm
Lines 1010 to 1013 in ef62d3f
STL/stl/inc/algorithm
Lines 1099 to 1102 in ef62d3f
The lambda needs to specify return type eg
-> bool
sinceboolean-testable
only requires that the return type ofPred
can be converted tobool
.https://godbolt.org/z/dPKKeex9o
The text was updated successfully, but these errors were encountered: