| 128 | /// Find the best dispatch target given a filter. |
| 129 | template <typename Func, typename Filter> |
| 130 | constexpr DynamicDispatchTarget<Func> BestDispatchTarget( |
| 131 | const DynamicDispatchTargets<Func> auto& targets, Filter filter) { |
| 132 | DynamicDispatchTarget<Func> best = {}; |
| 133 | for (const auto& trgt : targets) { |
| 134 | if (trgt.level >= best.level && filter(trgt)) { |
| 135 | best = trgt; |
| 136 | } |
| 137 | } |
| 138 | return best; |
| 139 | } |
| 140 | |
| 141 | /// Find the best dispatch target (no filter). |
| 142 | template <typename Func> |
nothing calls this directly
no outgoing calls
no test coverage detected