MCPcopy Create free account
hub / github.com/bytecodealliance/wit-bindgen / invoke

Function invoke

crates/cpp/test_headers/expected.hpp:287–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285#endif
286 typename = enable_if_t<std::is_member_pointer<decay_t<Fn>>::value>, int = 0>
287constexpr auto invoke(Fn &&f, Args &&...args) noexcept(
288 noexcept(std::mem_fn(f)(std::forward<Args>(args)...)))
289 -> decltype(std::mem_fn(f)(std::forward<Args>(args)...)) {
290 return std::mem_fn(f)(std::forward<Args>(args)...);
291}
292
293template <typename Fn, typename... Args,
294 typename = enable_if_t<!std::is_member_pointer<decay_t<Fn>>::value>>

Calls

no outgoing calls

Tested by

no test coverage detected