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

Function DispatchFullyStatic

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

Source from the content-addressed store, hash-verified

96// TODO: remove the #else branch when we no longer have partial C++20 support with CRAN.
97template <typename Func>
98constexpr bool DispatchFullyStatic(const DynamicDispatchTargets<Func> auto& targets) {
99#if defined(__cpp_lib_ranges) && __cpp_lib_ranges >= 201911L
100 return std::ranges::all_of(targets, [](const DynamicDispatchTarget<Func>& trgt) {
101 return DispatchIsStatic(trgt.level);
102 });
103#else
104 return std::all_of(targets.begin(), targets.end(),
105 [](const DynamicDispatchTarget<Func>& trgt) {
106 return DispatchIsStatic(trgt.level);
107 });
108#endif
109}
110
111/// Return whether any function in the array can be statically dispatched.
112/// Return false on empty sets.

Callers

nothing calls this directly

Calls 3

DispatchIsStaticFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected