|
Monado OpenXR Runtime
|
Helper struct that keeps the value that produces the lowest "score" as computed by your functor. More...
Public Member Functions | |
| void | handle_candidate (ValueType val) |
Data Fields | |
| const FunctionType | score_functor |
| bool | got_one {false} |
| ValueType | best {} |
| float | best_score {0} |
Helper struct that keeps the value that produces the lowest "score" as computed by your functor.
Having this as a struct with a method, instead of a single "algorithm"-style function, allows you to keep your complicated filtering logic in your own loop, just calling in when you have a new candidate for "best".
| ValueType | The type of a single element value - whatever you want to assign a score to. |
| FunctionType | The type of your functor/lambda that turns a ValueType into a float "score". Usually deduced. |
1.8.13