-
In short, I have a soa_vector with a user defined struct. And now I want to fetch the max_value for a the second member in that struct. Minimal example of what I am trying to achieve: https://godbolt.org/z/dxPbPfrx5 This does not sound to hard to achieve but I am missing a crucial step it seems... |
Beta Was this translation helpful? Give feedback.
Answered by
jfalcou
Oct 11, 2024
Replies: 1 comment 2 replies
-
You can pass a predicate as a 2nd member of max_value in which you can compare what you want |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
matthijs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can pass a predicate as a 2nd member of max_value in which you can compare what you want
https://godbolt.org/z/6hWWc816d