MCPcopy Create free account
hub / github.com/apache/arrow / BestDispatchTarget

Function BestDispatchTarget

cpp/src/arrow/util/dispatch_internal.h:130–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128/// Find the best dispatch target given a filter.
129template <typename Func, typename Filter>
130constexpr 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).
142template <typename Func>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected