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

Function DispatchHasStatic

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

Source from the content-addressed store, hash-verified

113// TODO: remove the #else branch when we no longer have partial C++20 support with CRAN.
114template <typename Func>
115constexpr bool DispatchHasStatic(const DynamicDispatchTargets<Func> auto& targets) {
116#if defined(__cpp_lib_ranges) && __cpp_lib_ranges >= 201911L
117 return std::ranges::any_of(targets, [](const DynamicDispatchTarget<Func>& trgt) {
118 return DispatchIsStatic(trgt.level);
119 });
120#else
121 return std::any_of(targets.begin(), targets.end(),
122 [](const DynamicDispatchTarget<Func>& trgt) {
123 return DispatchIsStatic(trgt.level);
124 });
125#endif
126}
127
128/// Find the best dispatch target given a filter.
129template <typename Func, typename Filter>

Callers

nothing calls this directly

Calls 3

DispatchIsStaticFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected